Zomato-vs-Swiggy : Who is winning the War
Table of contents
Zomato and Swiggy Tweets EDA and Sentiment Analysis

In today’s digital era, the importance of consumer perception can’t be overstated, especially for businesses reliant on daily customer interactions. For food delivery giants like Zomato and Swiggy, how users perceive and interact with them on social media platforms such as Twitter can profoundly impact their business performance. This blog takes you through an insightful journey of Exploratory Data Analysis (EDA) and Sentiment Analysis of tweets that mention Zomato and Swiggy, giving us a peek into public perception of these brands.
Audio Podcast

Twitter(x) is one of the fastest ways to gauge real-time customer sentiment. Whether it's praise, criticism, or casual commentary, the platform is a treasure trove of insights for businesses aiming to understand how they are perceived by the masses. Tweets, by their nature, are candid and usually offer a raw and unfiltered view into what customers truly think.
Objective of the Analysis:
The purpose of this analysis is to perform two major tasks:
-
EDA (Exploratory Data Analysis): To uncover key insights about the nature of tweets surrounding Zomato and Swiggy, such as the most frequent keywords, trending topics, and user engagement patterns.
-
Sentiment Analysis: To categorize the tweets into positive, negative, and neutral sentiments, offering a comparative view of how each brand is perceived.
Steps in the Analysis Process:
- Data Collection: The first step involves gathering tweets from users mentioning Zomato and Swiggy. The goal is to ensure the data sample is large enough for meaningful insights. This dataset, consisting of both brands' tweets, forms the backbone of the analysis.
- Sample Dataset that I used
tweetText | tweetAuthor | handle | replyCount | quoteCount | retweetCount | likeCount | views | bookmarkCount | createdAt |
---|---|---|---|---|---|---|---|---|---|
gentle reminder to work hard so your manager can taste success | zomato | @zomato | 80 | 4 | 13 | 412 | 29631 | 6 | 27-09-2024 10:38 |
aap log khaana hi order karo, yahan kuch crash nahi hoga 👍 #Coldplay | Swiggy Food | @Swiggy | 93 | 29 | 86 | 1900 | 56640 | 20 | 22-09-2024 12:40 |
- Data Preprocessing: Raw data must be cleaned before diving into the analysis. Preprocessing tasks include:
-
Removing unwanted characters, URLs, and mentions.
-
Tokenizing the tweets (splitting them into words).
-
Correcting spelling mistakes.
-
Filtering out stop words (common words with little meaning such as 'the', 'and', etc.).
-
Here you can see the Correlation between the dataset
Visualization(Tweets Attributes Analysis):
Visual representation is crucial to highlight trends. Using libraries like Matplotlib, Plotly, and Seaborn, the analysis will create engaging visuals to depict:
- These are the most frequent words in Zomato vs. Swiggy tweets.
The graph shows the retweets over time for both Zomato and Swiggy from early 2023 to late 2024. Here are the key observations:
Conclusion:
- Zomato shows much more consistent engagement over time, with regular spikes in retweets, suggesting a more sustained social media interaction.
- Swiggy, on the other hand, experiences sporadic bursts of engagement, with a massive peak in September 2024 but otherwise minimal activity.
- Zomato’s engagement strategy seems to have been more effective in maintaining consistent social media activity, while Swiggy's engagement is less steady but can generate significant interest in short bursts.
-
Sentence Length and Wordcount Weighted Average
-
Sentence Length Distribution
-
Number of Activities per hour period of the day
-
Time of the day most Tweeted
Sentiment Distributions
This is the heart of the analysis. By utilizing VADER Sentiment Analysis, we can classify each tweet as:
- Positive: Users are satisfied or pleased with the brand's service.
- Negative: Complaints or issues raised against the brand.
- Neutral: No strong opinion or indifferent statements.
-
Count of Tweets Sentiments
-
Sentiment Distribution for Zomato and Swiggy
- Wordcloud of Sentiments
We can then compare the sentiment breakdown for Zomato and Swiggy, answering key questions like:
- Which brand receives more positive feedback?
- Which one faces more criticism?
- which one is more Pookie
Topic Modeling
By employing Latent Dirichlet Allocation (LDA), topic modeling can be used to discover the primary themes discussed in tweets about both brands. This analysis highlights which services or features—such as delivery speed, food quality, or customer service—are more frequently mentioned in connection with Zomato and Swiggy.
-
Zomato
-
Swiggy
Conclusion:
The EDA and sentiment analysis reveals fascinating insights into how the public perceives Zomato and Swiggy. By keeping a close eye on their social media presence and continuously analyzing customer feedback, both brands can better cater to their users’ needs and make data-driven improvements. Ultimately, this data-driven approach can give businesses like Zomato and Swiggy a competitive edge in the highly competitive food delivery market.
Models
There are no models linked