Numpy, Python, Array, Shape, Programming.
print(a.shape) # Output: (2, 3) Here, the shape is expressed in terms of the number of rows and the number of columns (in 2 dimensions). array.reshape: returns an array with a new shape, without changing the original array. import numpy as np a = np.array([1, 2, 3, 4, 5, 6]) b = a.reshape((2, 3))