Numpy, Python Programming, Data Analysis, Numerical Analysis, Data Science.
np.eye(3) # creates a 3x3 identity matrix Array Shape and Size arr.shape # returns a tuple of the array's shape arr.size # returns the total number of elements in the array arr.ndim # returns the number of dimensions in the array Array Reshaping arr.reshape(2, 3) # reshapes the array into a 2x3