max date by group pandas

30

df_new = df[df.groupby('col')['date'].transform('max') == df['date']]

Comments

Submit
0 Comments