How to Change the Data Type of NumPy Array? | GeeksforGeeks

preview_player
Показать описание
In this video, we're going to discuss how to change the datatype of the Numpy Array. Here, we'll be using the .astype() function in order to change the datatype of the array. This function supports all the generic & built-in types of data and just takes an argument which is the target data type. So, let's get started now.

Check Out the Related Articles:

00:00 Let's Start
01:04 Identifying the Datatype of a Numpy Array
01:28 Changing the Datatype from 'int32' to 'float6' using .astype()
02:18 Changing the Datatype from 'int32' to 'complex128' using .astype()
03:09 Closing Notes

This video is contributed by Akshit Madan.
Please Like, Comment, and Share the Video with your friends.

#python #numpy #geeksforgeeks #array #datatype #datascience

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on our Social Media Handles -

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

I can't thank you enough. Thanks to your video, I eventually fix my problem about row operation in numpy.matrix for reducing the matrix. I've been stuck for a while, thank you.😭

姜名孺
visit shbcf.ru