79569232

Date: 2025-04-11 15:41:26
Score: 1
Natty:
Report link

Try to apply filter for each group

df_ts = my_df.groupby('col_1').filter(lambda x: (x['col_2'] <= 1).any())

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey