Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = df['id'].value_counts().sort_values(ascending = False).head(10).to_frame().reset_index()
- x.rename(columns = {'index':'id', 'id': 'freq'}, inplace = True)
- x.plot.bar(x = 'id', y = 'freq')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement