How can I filter a Pandas GroupBy object and obtain a GroupBy object back?,grouped.apply(lambda x: x.sum() if len(x) > 2 else None).dropna()