pandas.Series.idxmax

Series.idxmax(axis=None, out=None, skipna=True)

Index of first occurrence of maximum of values.

Parameters :

skipna : boolean, default True

Exclude NA/null values

Returns :

idxmax : Index of minimum of values

See also

DataFrame.idxmax

Notes

This method is the Series version of ndarray.argmax.