Professional Documents
Culture Documents
11 NumPy Notes PDF
11 NumPy Notes PDF
Sol:A NumPy array is a table of elements(usually numbers), all of the same type, indexed by a tuple of
integers.
NumPy arrays are also called ndarrays. The ndarrays can be 1-dimensional,2-dimensional or
multidimensional.
2.What is the relationship between the rank of an array and the shape of the array?
A shape is tuple that stores the number of elements in each dimension of the ndarray.
Thus the length(len() )of shape tuple is same as that of rank of the ndarray
Import numpy as np
Print(np.__version__)
Import numpy as np