Python Practice › NumPy Programs › Program 59
Index of the minimum
Write a NumPy program to find the index of the minimum value.
Input
[76, 36, 56, 90]
Output
1
Approach
argmin.
Solution
import numpy as npprint(np.argmin([76, 36, 56, 90]))Output
1
Learn the concept
New to this topic? Read the lesson, then come back.