DataFrameGroupBy.
idxmax
Return index of first occurrence of maximum 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 maxima along the specified axis.
If the row/column is empty
See also
Series.idxmax
Notes
This method is the DataFrame version of ndarray.argmax.
ndarray.argmax