Word Cloud
1 min readJul 6, 2018
A word cloud represents word usage in a document by resizing individual words proportionally to its frequency, and then presenting them in random arrangement.
Code to generate word cloud :
from wordcloud import WordCloudtext = []for t in df.text:
text.append(t)text = pd.Series(text).str.cat(sep=' ')wordcloud = WordCloud(width=1600,
height=800,
max_font_size=200
).generate(text)plt.figure(figsize=(12,10))
plt.imshow(wordcloud, interpolation="bilinear")
plt.axis("off")
plt.show()