Guest User

Untitled

a guest
Oct 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # make dataframe of top languages to chart
  2. language_values = tweets_no_rts_df['tweet_lang'].value_counts()[:10]
  3.  
  4. # make chart on top languages
  5. language_values.plot(kind='bar', x='lang', y='count', figsize=(20, 15))
  6. plt.title('Top 10 Languages', size = 40)
  7. plt.xlabel('Languages', size = 30)
  8. plt.xticks(rotation='horizontal', size=20)
  9. plt.ylabel('Languages Counts', size = 30)
  10. plt.yticks(size=20)
  11. plt.grid(True)
  12. plt.show()
Add Comment
Please, Sign In to add comment