RANGE vs LINSPACE vs ARANGE - Qual a diferença? Python NUMPY

Published: 10 May 2021
on channel: Programe Python
2,101
188

Aprenda a gerar ranges, listas e arrays de número igualmente espaçados n python, através da função range ou das funções linspace e arange do numpy.
Essas funções criar sequências numéricas igualmente espaçados, seguinto critérios definidos na sua criação.

Códigos útilizados:
np.linspace(1, 10, 5)
np.arange(1, 10, 5, dtypes=int)
[i for i in range(1, 10)
np.linspace(1, 10, 2, dtype=int)
np.linspace(1, 10, 5, endpoint=False)
np.linspace(1, 10, 5, retstep=True)
np.linspace([1, 2], 10, 5, axis=1)
np.linspace([1, 2], [10, 20], 5, axis=1)


Playlist sobre PANDAS:    • Pandas  
Playlist sobre PYTHON:    • Python  
Playlist sobre GRÁFICOS:    • Gráficos  
Playlist sobre JUPYTER:    • Jupyter Notebook  

#python #pandas #dataframe #numpy #range #arange #array #lista #sequência

0:00 Introdução
0:36 Diferença entre as funções
2:08 Função arange
2:41 Função linspace
4:03 Sequências multi dimensionais
4:42 Encerramento


On this page of the site you can watch the video online RANGE vs LINSPACE vs ARANGE - Qual a diferença? Python NUMPY with a duration of hours minute second in good quality, which was uploaded by the user Programe Python 10 May 2021, share the link with friends and acquaintances, this video has already been watched 2,101 times on youtube and it was liked by 188 viewers. Enjoy your viewing!