Skip to content

Instantly share code, notes, and snippets.

@fuwiak
Created August 19, 2019 22:17
Show Gist options
  • Save fuwiak/fb9aa30de346481b520685fa84b57988 to your computer and use it in GitHub Desktop.
Save fuwiak/fb9aa30de346481b520685fa84b57988 to your computer and use it in GitHub Desktop.
from collections import Counter
vacancy_names = df.name
cloud = Counter(vacancy_names)
from wordcloud import WordCloud, STOPWORDS
stopwords = set(STOPWORDS)
cloud = ''
for x in list(vacancy_names):
cloud+=x+' '
wordcloud = WordCloud(width = 800, height = 800,
stopwords = stopwords,
min_font_size = 8,background_color='white'
).generate(cloud)
import matplotlib.pylab as plt
plt.figure(figsize = (16, 16))
plt.imshow(wordcloud)
plt.savefig('vacancy_cloud.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment