# pandas.Series.argmin¶

Series.argmin(axis=None, skipna=True, *args, **kwargs)[source]

Deprecated since version 0.21.0: ‘argmin’ is deprecated, use ‘idxmin’ instead. The behavior of ‘argmin’

will be corrected to return the positional minimum in the future. Use ‘series.values.argmin’ to get the position of the minimum now. Index label of the first occurrence of minimum of values.

Parameters: skipna : boolean, default True Exclude NA/null values. If the entire Series is NA, the result will be NA. idxmin : Index of minimum of values ValueError If the Series is empty

Notes

This method is the Series version of ndarray.argmin. This method returns the label of the minimum, while ndarray.argmin returns the position. To get the position, use series.values.argmin().

Scroll To Top