March 2020
Beginner to intermediate
352 pages
8h 40m
English
One of the easiest things to analyze about your emails is the most frequently used words. We can create a word cloud to see the most frequently used words. Let's first remove the archived emails:
from wordcloud import WordCloud df_no_arxiv = dfs[dfs['from'] != 'no-reply@arXiv.org']text = ' '.join(map(str, sent['subject'].values))
Next, let's plot the word cloud:
stopwords = ['Re', 'Fwd', '3A_']wrd = WordCloud(width=700, height=480, margin=0, collocations=False)for sw in stopwords: wrd.stopwords.add(sw)wordcloud = wrd.generate(text)plt.figure(figsize=(25,15))plt.imshow(wordcloud, interpolation='bilinear')plt.axis("off")plt.margins(x=0, y=0)
I added some extra stop words to filter out from the graph. The output for ...
Read now
Unlock full access