File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2544,7 +2544,8 @@ def idxmax(
2544
2544
Wheat Products 103.11 19.66
2545
2545
Beef 55.48 1712.00
2546
2546
2547
- By default, it returns the index for the maximum value in each column according to the group.
2547
+ By default, it returns the index for the maximum value in each column
2548
+ according to the group.
2548
2549
2549
2550
>>> df.groupby("food_type").idxmax()
2550
2551
consumption co2_emissions
@@ -2609,7 +2610,8 @@ def idxmin(
2609
2610
Wheat Products 103.11 19.66
2610
2611
Beef 55.48 1712.00
2611
2612
2612
- By default, it returns the index for the minimum value in each column according to the group.
2613
+ By default, it returns the index for the minimum value in each column
2614
+ according to the group.
2613
2615
2614
2616
>>> df.groupby("food_type").idxmin()
2615
2617
consumption co2_emissions
You can’t perform that action at this time.
0 commit comments