pandas.DataFrame.idxmin
pandas 3.1.1 · DataFrame · method
Get the label of the first minimum along the selected axis or within a group.
Call syntax
DataFrame.idxmin(axis=0, 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 |
|---|---|---|
axis |
Optional Positional or keyword Default 0 |
{0 or 'index', 1 or 'columns'} Choose which axis the operation acts on. The accepted axis labels depend on the receiver. |
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
Series