Word Cloud with Python Tutorial
What is a Word Cloud?
A word cloud is more than a simple graphical representation of textual data. In data science, it plays a major role in analyzing data from different types of applications. A word cloud is a graphical representation of words, i.e. tags, which are used to represent the frequency of entities in a particular data set.
In Data Science, word clouds are mainly used to visualize the most frequent words in a graphical representation to identify keywords of different sizes and colours based on the frequency of the words.
Word Cloud with Python Tutorial:
Hope you now know what word clouds are and why they are used in data analysis. In this section, I’ll walk you through a tutorial on creating a word cloud with Python.
To create a word cloud with the Python programming language, I’ll be using Google Play Store Reviews data which can be easily downloaded below. Now let’s import the necessary Python dataset and libraries and start building a word cloud with Python:
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
import pandas as pd
df1 = pd.read_csv('five_star_reviews.csv')
df1.head()
Rating | Review | |
---|---|---|
0 | 5 | You have to improve the camera performance, an… |
1 | 5 | It keeps hanging up completely phone(S10+) and… |
2 | 5 | Perfect for virtual conversation. We suggest t… |
3 | 5 | A very decent experience i’ve gained using the… |
4 | 5 | This app is very good as everyone knows. Here … |
Rating | Review | |
---|---|---|
0 | 1 | Latest update broke the photo taking function…. |
1 | 1 | It was one of my favourite app. Easy and secur… |
2 | 1 | WhatsApp has a major glitch or bug that is hor… |
3 | 1 | It was a good app for communication but it is … |
4 | 1 | A almost a year passed and the bug I reported … |
0 Comments