astype in NumPy Python | Module NumPy Tutorial - Part 05

Publicado em: 21 Setembro 2022
no canal de: Koolac
3,646
55

In this video, we will talk about astype function in numpy module python with example. Maybe you ask: How do I convert a NumPy array to integer? or float or ....? And the answer to all of these questions is: using the astype function.

==================================
NumPy Module Tutorial Playlist for Machine Learning:
==================================
   • Numpy Python Playlist  

==================================
Source Code:
==================================
import numpy as np
x=np.array(["1","2","3"])
y=x.astype(float)
print(y)
print(y.dtype)


Nesta página do site você pode assistir ao vídeo on-line astype in NumPy Python | Module NumPy Tutorial - Part 05 duração online em boa qualidade , que foi baixado pelo usuário Koolac 21 Setembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,646 vezes e gostou 55 espectadores. Boa visualização!