Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created August 15, 2020 05:40
Show Gist options
  • Save aniruddha27/9f7e822b21411439c46bdb1e419407e4 to your computer and use it in GitHub Desktop.
Save aniruddha27/9f7e822b21411439c46bdb1e419407e4 to your computer and use it in GitHub Desktop.
# Most commomly occuring words
def keywords():
all_words = ' '.join([text for text in df_tweet['Clean_Tweet']])
wordcloud = WordCloud(width=800, height=500, random_state=21, max_font_size=110).generate(all_words)
plt.figure(figsize=(10, 7))
plt.imshow(wordcloud, interpolation="bilinear")
plt.axis('off')
plt.show()
keywords()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment