Skip to content

Instantly share code, notes, and snippets.

@Steboss89
Created April 8, 2022 15:30
Show Gist options
  • Save Steboss89/4a3663b06d4720a6e61ba5e5baa4c165 to your computer and use it in GitHub Desktop.
Save Steboss89/4a3663b06d4720a6e61ba5e5baa4c165 to your computer and use it in GitHub Desktop.
Create a wordcloud with all the input books
for book in data:
big_string += book + " "
wordcloud = WordCloud(width=1600, height=800,max_font_size=200).generate(big_string)
plt.figure(figsize=(12,10))
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