Difference between numpy shape(), size(), and itemsize() - Week 8: High dimensional array and creating numpy array

please explain the difference in between arr.shape, arr.size and arr.itemsize

Hi @PURVI,
np.shape() is used to get complete structural shape of our 2D array. For example (3,4).

np.size() will give us how many elements are present in total. For a (3,4) array, it will be 12.

np.itemsize() gives us the space been occupied by each item in that array.