Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created May 11, 2021 05:34
Show Gist options
  • Save AayushSameerShah/7e7170e861cdb29b8edcc51db13f8643 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/7e7170e861cdb29b8edcc51db13f8643 to your computer and use it in GitHub Desktop.
Make WORDMAP
from wordcloud import WordCloud, STOPWORDS
text = ' '.join(df_movie['listed_in'])
plt.rcParams['figure.figsize'] = (12,12)
wordcloud = WordCloud(background_color = 'black',colormap='vlag', width = 1200, height = 1200, max_words = 121).generate(text)
plt.imshow(wordcloud)
plt.axis('off')
plt.show()
@AayushSameerShah
Copy link
Author

This will make the categorical feature into Sherlock Type feature...
Link https://www.kaggle.com/nikunjmalpani/netflix-movies-and-tv-shows-data-visualization (Scroll to 42nd IN)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment