astype in NumPy Python | Module NumPy Tutorial - Part 05

Pubblicato il: 21 settembre 2022
sul canale di: 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)


In questa pagina del sito puoi guardare il video online astype in NumPy Python | Module NumPy Tutorial - Part 05 della durata di online in buona qualità , che l'utente ha caricato Koolac 21 settembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,646 volte e gli è piaciuto 55 spettatori. Buona visione!