In this python numpy program, we will find the indices of the minimum value of an array using NumPy.
Steps to solve the program
- Import the numpy library as np.
- Create an array using np.array().
- Find the indices of the minimum value of the array using np.argmin().
- Print the output.
import numpy as np
x = np.array([76,36,56,90])
print("Index of minimum Values: ",np.argmin(x))
Output :
Index of manimum Values: 1