I have a dataset, df, where I would like to show only the max distinct values.
DATA
type power
a_b 5
a_c 6
a_c 4
a_c 4
a_b 6
a_b 9
DESIRED
type power
a_b 9
a_c 6
DOING
df1 = df.unique
df2 = max(df1)
Any suggestion is appreciated