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
4 авг 2024