Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 89)
89.
How can you reshape a NumPy array arr to have 2 rows and 3 columns?
np.reshape(arr, (2, 3))
arr.resize(2, 3)
arr.reshape(2, 3)
np.resize(arr, (2, 3))
Answer: Option
Explanation:
The reshape() function is used to reshape the array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.