Created
August 19, 2019 22:17
-
-
Save fuwiak/fb9aa30de346481b520685fa84b57988 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
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