Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make dataframe of top languages to chart
- language_values = tweets_no_rts_df['tweet_lang'].value_counts()[:10]
- # make chart on top languages
- language_values.plot(kind='bar', x='lang', y='count', figsize=(20, 15))
- plt.title('Top 10 Languages', size = 40)
- plt.xlabel('Languages', size = 30)
- plt.xticks(rotation='horizontal', size=20)
- plt.ylabel('Languages Counts', size = 30)
- plt.yticks(size=20)
- plt.grid(True)
- plt.show()
Add Comment
Please, Sign In to add comment