Values are [4, 9, 2, 9, 1]. Print the index of the first maximum. argmax returns a position. max returns the value.
Data analysis labNumPy problems
Problem 19 of 50 · Masks · Medium
Index of the largest value
Find where the maximum sits, not the maximum itself.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2