This lesson requires a premium membership to access.
Premium membership includes unlimited access to all courses, quizzes, downloadable resources, and future content updates.
Ask questions about this lesson and get instant answers.
Once you have created an array, you can check its various attributes using the inbuilt functions. Some of these are described below:
Returns the number of array dimensions.
1>>> a
2array([[ 1., 2., 3.],
3 [ 4., 5., 6.]])
4>>> a.ndim
52
6>>> x = np.array([1, 2, 3])
7>>> x.ndim
81
9