![]() ![]() |
External Packages (page 10 of 38) |
The following are a few important attributes of an ndarray:
1. shape: Returns a tuple representing the shape (dimensions) of the array.
2. ndim: Returns the number of dimensions (axes) of the array.
3. size: Returns the total number of elements in the array.
4. dtype: Provides the data type of the array elements.
5. itemsize: Returns the size in bytes of each element
