human
filtering grouped df in pandas
assistant
Here is some code to filter dataframe `grouped` where the length of each group `x` is bigger than 1

grouped.filter(lambda x: len(x) > 1)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.