Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 58)
58.
Given a NumPy array arr = np.array([5, 2, 8, 1, 7]), what does np.argmax(arr) return?
1
2
4
0
Answer: Option
Explanation:
The np.argmax() function returns the index of the maximum value in the array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.