DataFrameGroupBy.
idxmin
Return index of first occurrence of minimum over requested axis.
NA/null values are excluded.
The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise.
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
Indexes of minima along the specified axis.
If the row/column is empty
See also
Series.idxmin
Notes
This method is the DataFrame version of ndarray.argmin.
ndarray.argmin