pandas.api.typing.SeriesGroupBy.idxmax
pandas 3.1.1 · GroupBy · method
Get the label of the first maximum along the selected axis or within a group.
Call syntax
pd.api.typing.SeriesGroupBy.idxmax(skipna=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
skipna |
Optional Positional or keyword Default True |
bool Choose whether to exclude missing values during the calculation. |
Returns
Series