Rajesh Gudikoti
Apr 22 · 2 min read

Visualization of customer feedback to get insights of main reasons behind their feedback — Word Cloud

On technology front, I will be using “wordcloud” python library. I will be using airline industry dataset from kaggle.


When we think of airline industry, the common causes are flight delay, baggage issue, hospitality etc. For one airline provider, delay may be the major issue and for other it can be baggage issue. Here, we just try to represent the reasons in the form of word cloud.

As usual, data is pre-processed before applying analytics. I will skip data pre-processing details and focus on word cloud generation.

To create word cloud in python, we just need few lines of code.

from wordcloud import WordCloudwc = WordCloud(stopwords=stop_words, background_color="white", colormap="Dark2",max_font_size=150, random_state=42)wc.generate(data_nouns_adj.reviews[c])

Initially, I picked up nouns and adjectives expressed in customer reviews, and generated word cloud as shown below.

It did not give right sense as required for my use case. I wanted to understand the main pain points shared by customers.

Next trail, I picked the verbs and generated word cloud. This gave me better insights of customer reviews. As shown in below image, for few airlines, cancellation of flight is the main pain point, for few airlines, delay is the paint point.

(We can club delayed and waiting keywords as both words tend to mean same)

The word cloud is good visualization technique to understand text data. In this technique the size of each word indicates its frequency and significance.

Business Use Case for Word Cloud

1. Finding customer pain points — and opportunities to connect

2. Understanding how your employees feel about your company

3. Identifying new SEO terms to target

The more details can be found below


Previous Article

IBM Code Content for Developers

Rajesh H Gudikoti

Generate newsletter automatically using Natural Language Generation

Rajesh Gudikoti

Written by

I have spent 2 decades in software industry and worked on both applications and products. My experience is in Java, J2EE, BPM and AI/NLP/ML.

Rajesh H Gudikoti

Generate newsletter automatically using Natural Language Generation