Find the indices of the minimum value of an array using NumPy

In this python numpy program, we will find the indices of the minimum value of an array using NumPy.

Steps to solve the program
  1. Import the numpy library as np.
  2. Create an array using np.array().
  3. Find the indices of the minimum value of the array using np.argmin().
  4. 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
				
			

find the indices of the maximum value of an array.

change the data type of an array.

Leave a Comment