Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for column in df:
- if df[column].dtypes == ‘object’:
- cat= df[column]
- cat_table = pd.crosstab(cat_plot,columns=‘count’).sort_values(‘count’, ascending=False).head(10)
- for key, value in cat_table.items():
- print(key, value)
Add Comment
Please, Sign In to add comment