modin.pandas.SeriesGroupBy.idxmin¶
- SeriesGroupBy.idxmin(axis=_NoDefault.no_default, skipna=True)[source]¶
Return the index of the first occurrence of minimum over requested axis.
NA/null values are excluded based on skipna.
- Parameters:
axis ({{0 or 'index', 1 or 'columns'}}, default None) –
The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise. If axis is not provided, grouper’s axis is used.
Snowpark pandas does not support axis=1, since it is deprecated in pandas.
Deprecated: For axis=1, operate on the underlying object instead. Otherwise, the axis keyword is not necessary.
skipna (bool, default True) – Exclude NA/null values. If an entire row/column is NA, the result will be NA.
numeric_only (bool, default False) – Include only float, int or boolean data.
- Returns:
Indexes of minima along the specified axis.
- Return type:
- Raises:
ValueError – If the row/column is empty
See also
Series.idxminReturn index of the minimum element.
Notes
This method is the DataFrame version of
ndarray.argmin.Examples
Group by axis=0, apply idxmax on axis=0