How do i apply a function to a dataframe after grouping it if i only want to apply the function on groups where the group has membership greater than 1.
e.g
df1 = df.groupyby(['x','y']).count() > 1.apply(f)
f(x) :
do something
Secondly what is being passed into the function - is it the elements on the group or the group itself.