-
-
Save amankharwal/87993a0aa0c5f1994435583a197d001b to your computer and use it in GitHub Desktop.
This file contains 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
title_words = list(df["title"].apply(lambda x: x.split())) | |
title_words = [x for y in title_words for x in y] | |
wc = wordcloud.WordCloud(width=1200, height=500, | |
collocations=False, background_color="white", | |
colormap="tab20b").generate(" ".join(title_words)) | |
plt.figure(figsize=(15,10)) | |
plt.imshow(wc, interpolation='bilinear') | |
_ = plt.axis("off") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment