Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 19)
19.
Which of the following methods is used to reshape a NumPy array?
arr.rearrange(new_shape)
arr.reshape(new_shape)
numpy.resize(arr, new_shape)
numpy.rearrange(arr, new_shape)
Answer: Option
Explanation:
The reshape() method in NumPy is used to change the shape of an array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.