Skip to content

Commit 1cb4ec8

Browse files
code sample for pandas-dev#43568
1 parent 5350830 commit 1cb4ec8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bisect/43568.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# REGR: change in output of groupby.apply in 1.3.2 -> 1.3.3 #43568
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
df = pd._testing.makeTimeDataFrame()
8+
9+
result = df.groupby(df.index.month).apply(lambda x: x.drop_duplicates())
10+
print(result)
11+
12+
assert isinstance(result.index, pd.MultiIndex)

0 commit comments

Comments
 (0)