Created
April 8, 2022 15:30
-
-
Save Steboss89/4a3663b06d4720a6e61ba5e5baa4c165 to your computer and use it in GitHub Desktop.
Create a wordcloud with all the input books
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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