nunique sort

Solutions on MaxInterview for nunique sort by the best coders in the world

showing results for - "nunique sort"
Auguste
26 May 2017
1df = df.groupby('A')['B'].nunique().sort_values(ascending=False).reset_index(name='count')
2print (df)
3   A  count
40  D      3
51  C      2
62  E      1
7
queries leading to this page
nunique sortnunique sort