Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import seaborn as sns
  2.  
  3. import pandas as pd
  4.  
  5. res = {
  6. 'الذكاء': 8,
  7. 'الاصطناعي': 9,
  8. 'هو': 2,
  9. 'سلوك': 1,
  10. 'وخصائص': 1,
  11. 'معينة': 1,
  12. 'تتسم': 1
  13. }
  14.  
  15. df = = pd.DataFrame(res.items(), columns=['word', 'count'])
  16.  
  17. sns.set(style="whitegrid")
  18. ax = sns.barplot(x="count", y="word", data=df)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement