You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.2.3
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
The group keys should be add to index when setting group_keys=True(the default option). And when I use pandas==1.1.5, the output is as expected:
1.1.5
agg_col
groupby_col
A 0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
B 5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
But I find that examples in #38787 (comment) does work as expected even in 1.2.3:
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
code
output
The group keys should be add to index when setting group_keys=True(the default option). And when I use
pandas==1.1.5
, the output is as expected:But I find that examples in #38787 (comment) does work as expected even in 1.2.3:
code
output
The text was updated successfully, but these errors were encountered: