Guest User

Untitled

a guest
Feb 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. for column in df:
  2. if df[column].dtypes == ‘object’:
  3. cat= df[column]
  4. cat_table = pd.crosstab(cat_plot,columns=‘count’).sort_values(‘count’, ascending=False).head(10)
  5. for key, value in cat_table.items():
  6. print(key, value)
Add Comment
Please, Sign In to add comment