Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 82)
82.
How can you reverse the order of elements along the first axis of a NumPy array arr?
np.flipud(arr)
np.reverse(arr, axis=0)
np.flip(arr, axis=0)
arr[::-1]
Answer: Option
Explanation:
The np.flip() function can be used to reverse the order of elements along a specified axis.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.