Skip to content

Commit 4ae8563

Browse files
code sample for pandas-dev#41998
1 parent e14556a commit 4ae8563

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bisect/41998.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BUG?: 1.3 behavior change with groupby and asindex=False #41998
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
df = pd.DataFrame(columns=["date", "crew_member_id"])
8+
9+
grp = df.groupby(["date", "crew_member_id"], as_index=False)
10+
result = grp.sum()
11+
12+
print(result)

0 commit comments

Comments
 (0)