Restaurant data analysis
Analyse a public restaurant dataset: what drives ratings, price vs rating, popular cuisines and city trends.
Intermediateโฑ 8โ12 hours๐ช 7 stepsPythonpandasseabornNLP basics
What you'll learn
- โCleaning messy real-world columns
- โFeature engineering
- โSimple text analysis of reviews
What you'll build
- โRating vs cost and online ordering
- โMost popular cuisines per area
- โWord clouds of reviews
- โRecommendations for a new restaurant
Step-by-step guide
- 1
Dataset
Use a public restaurant listings dataset (several are on Kaggle; read the licence).
- 2
Clean
Convert "4.1/5" to 4.1, "1,200" to 1200; drop duplicates by name + address.
- 3
Explode cuisines
Split "North Indian, Chinese" into rows with str.split and explode to count cuisines.
- 4
Relationships
Scatter of cost vs rating; boxplot of rating by online ordering and table booking.
- 5
Areas
Top cuisines and average cost per locality with groupby.
- 6
Reviews
Lower-case, remove stop words, count frequent words in high vs low rated places; draw word clouds.
- 7
Recommend
Finish with a one-page brief: where to open, which cuisine, what price.
๐ Make it stand out
- +Predict rating with a regression model
- +Sentiment score of reviews
- +Interactive map