Skip to content

Instantly share code, notes, and snippets.

@Johnne32
Created November 30, 2020 07:32
Show Gist options
  • Save Johnne32/e2c5fefbff7cfe8f528c9d07baec39b3 to your computer and use it in GitHub Desktop.
Save Johnne32/e2c5fefbff7cfe8f528c9d07baec39b3 to your computer and use it in GitHub Desktop.
#Using wordcloud to visualize the comments
unique_string=(" ").join(comments)
wordcloud = WordCloud(width = 2000, height = 1000,background_color='white').generate(unique_string)
plt.figure(figsize=(20,12))
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment