In this python numpy program, we will find the indices of the maximum value of 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 maximum value of the array using np.argmax().
- Print the output
import numpy as np
x = np.array([76,36,56,90])
print("Index of maximum Values: ",np.argmax(x))
Output :
Index of maximum Values: 3