pandas.api.typing.SeriesGroupBy.idxmin

pandas 3.1.1 · GroupBy · method

Get the label of the first minimum along the selected axis or within a group.

Call syntax

pd.api.typing.SeriesGroupBy.idxmin(skipna=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
skipna Optional
Positional or keyword
Default True
bool

Choose whether to exclude missing values during the calculation.

Returns

Series