Python Practice › NumPy Programs › Program 59

Index of the minimum

EasyNumPy Programs · 59 of 100

Write a NumPy program to find the index of the minimum value.

Advertisement
Input
[76, 36, 56, 90]
Output
1

Approach

  1. argmin.

Solution

Python
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.

More numpy programs

← All 100 NumPy Programs

Leave a Comment