Word cloud is an effective way of visualizing the texts. From a pool of texts, you can see which words are the dominants. They are fun and engaging visuals. So, just by looking at this visualization, you know the mode of the text. In this article, I am going to explain how to generate a word cloud using a python module called WordCloud. This is simple and easy. I will start with a simple word cloud and then show some custom and cool shape.

Setup

For this tutorial, I will use a dataset from Kaggle. Please feel free to download the dataset and follow along:

wine mag-data-130k

Kaggle is the world’s largest data science community with powerful tools and resources to help you achieve your data…

www.kaggle.com

To use the WordCloud module, you need to install it. That can be done by using the pip install command:

pip install wordcloud

The command for anaconda users:

conda install -c conda-forge wordcloud

The tools to be used:

  1. Numpy Library
  2. Pandas Library
  3. Matplotlib Library
  4. Pillow Imaging library
  5. Jupyter Notebook environment

Please make sure that you have them installed.

#data-analytics #towards-data-science #data-science #data-visualization #word-cloud #data analysis

Generate Word Clouds Of Any Shape In Python
3.90 GEEK