Help!
df = df[df.groupby(\'id\')[\'metric\'].transform(\'max\')==df[\'metric]]
and now my other functions don\'t work. I tried
df.