![]() |
VOOZH | about |
Understanding customer preferences and restaurant trends is important for making informed business decisions in food industry. In this article, we will analyze Zomatoβs restaurant dataset using Python to find meaningful insights. We aim to answer questions such as:
Below steps are followed for its implementation.
We will be using Pandas, Numpy, Matplotlib and Seaborn libraries.
You can download the dataset from here.
Output:
Before moving further we need to clean and process the data.
1. Convert the rate column to a float by removing denominator characters.
Output:
2. Getting summary of the dataframe use df.info().
Output:
3. Checking for missing or null values to identify any data gaps.
Output:
There is no NULL value in dataframe.
1. Let's see the listed_in (type) column to identify popular restaurant categories.
Output:
π Types of Restaurant Count-Geeksforgeeks
Conclusion: The majority of the restaurants fall into the dining category.
2. Votes by Restaurant Type
Here we get the count of votes for each category.
Output:
Conclusion: Dining restaurants are preferred by a larger number of individuals.
Find the restaurant with the highest number of votes.
Output:
Exploring the online_order column to see how many restaurants accept online orders.
Output:
π Online vs Offline Order-Geeksforgeeks
Conclusion: This suggests that a majority of the restaurants do not accept online orders.
Checking the distribution of ratings from the rate column.
Output:
π Rating DIstribution-Geeksforgeeks
Conclusion: The majority of restaurants received ratings ranging from 3.5 to 4.
Analyze the approx_cost(for two people) column to find the preferred price range.
Output:
π approx_cost(for two people)-GeeksforgeeksConclusion: The majority of couples prefer restaurants with an approximate cost of 300 rupees.
Compare ratings between restaurants that accept online orders and those that don't.
Output:
Conclusion: Offline orders received lower ratings in comparison to online orders which obtained excellent ratings.
Find the relationship between order mode (online_order) and restaurant type (listed_in(type)).
Output:
With this we can say that dining restaurants primarily accept offline orders whereas cafes primarily receive online orders. This suggests that clients prefer to place orders in person at restaurants but prefer online ordering at cafes.
You can download the source code from here: Zomato Data Analysis