Skip to content

Commit

Permalink
code sample for pandas-dev#43568
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Sep 22, 2021
1 parent 5350830 commit 1cb4ec8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bisect/43568.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# REGR: change in output of groupby.apply in 1.3.2 -> 1.3.3 #43568

import pandas as pd

print(pd.__version__)

df = pd._testing.makeTimeDataFrame()

result = df.groupby(df.index.month).apply(lambda x: x.drop_duplicates())
print(result)

assert isinstance(result.index, pd.MultiIndex)

0 comments on commit 1cb4ec8

Please sign in to comment.