The correct answer is: A. reshape, resize
The reshape function returns a new array with the specified shape, while the resize method modifies the shape of the existing array.
For example, the following code reshapes the array a to have a shape of (2, 3):
“`
a = np.array([[1, 2, 3], [4, 5, 6]])
a.reshape(2, 3)
array([[1, 2, 3],
[4, 5, 6]])
Subscribe on YouTube