Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 17)
17.
How do you find the index of the maximum value in a NumPy array named arr?
np.max_index(arr)
np.argmax(arr)
arr.index(max(arr))
arr.find_max_index()
Answer: Option
Explanation:
The argmax() function in NumPy returns the indices of the maximum value in an array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.