How do I filter a pandas DataFrame based on value counts?,df.groupby('A').filter(lambda x: len(x) > 1)