pandas.Series.idxmax¶
-
Series.
idxmax
(axis=None, skipna=True, *args, **kwargs)[source]¶ Index label of the first occurrence of maximum of values.
Parameters: skipna : boolean, default True
Exclude NA/null values
Returns: idxmax : Index of maximum of values
See also
Notes
This method is the Series version of
ndarray.argmax
. This method returns the label of the maximum, whilendarray.argmax
returns the position. To get the position, useseries.values.argmax()
.