Shape and Reshape Numpy Arrays - Numpy For Machine Learning 5

preview_player
Показать описание
In this video we'll learn how to determine the shape of a Numpy Array and reshape a Numpy Array.

You'll often need to determine the shape of a Numpy Array and we can do this using the .shape() function.

You can also change the shape of a Numpy Array using the .reshape() function. We'll look at how to use both the shape and reshape function in this video.

#numpy #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:13 - Create a 1-D Numpy Array And Get Shape
2:04 - Create a 2-D Numpy Array and Get Shape
3:27 - Reshape 2-D Numpy Array
4:34 - Reshape 3-D Numpy Array
5:44 - Flatten a Numpy Array
6:35 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Entire Numpy Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code:

Codemycom
Автор

You are an interesting person. Whenever I need help with python I find your videos. Thank you very much. It's great chance to have people like you.

bozok
Автор

this man is the exemple of some1 love his work, look how much he is excited to teach u this, thanks <3

FuryMuscles
Автор

Hi John will you upload whole AI series?

jainam
Автор

Hello, let me ask in the Flatten to 1-D section, can I replace np5 = np4.flatten() with np5 = np4.reshape(-1). Is it the same?Thank you

Tuoc_Nguyen
Автор

Do you give a certificate in your website?

narcseven
Автор

why does it show (12, ) for first case.. should'nt it be (1, 12) ?

KumR