pandas.api.typing.DataFrameGroupBy.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.DataFrameGroupBy.idxmin(skipna=True, numeric_only=False)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. |
numeric_only |
Optional Positional or keyword Default False |
bool Restrict the calculation to columns pandas considers numeric where applicable. |
Returns
DataFrame