Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 38)
38.
How can you reshape a NumPy array arr into a 2x3 matrix?
arr.reshape(2, 3)
arr.resize(2, 3)
np.reshape(arr, (2, 3))
np.resize(arr, (2, 3))
Answer: Option
Explanation:
The arr.reshape(2, 3) method reshapes the array into a 2x3 matrix.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.