Loading...
Examine and report properties of a NumPy array.
NumPy arrays have useful properties:
Write a function array_info(arr) that returns information about an array.
Return a dictionary with:
np.array([[1, 2, 3], [4, 5, 6]])
{'shape': [2, 3], 'dtype': 'int64', 'size': 6, 'ndim': 2, 'is_matrix': True}2 rows × 3 cols = 6 elements, 2D array is a matrix