# INFO 7374 Data Analysis Using Python - Final Project
# Zomato API Analysis
![zomato](https://cloud.githubusercontent.com/assets/25044358/25308325/704e8e28-277f-11e7-91fd-521b74d145bf.jpg)
## Zomato Analysis:
Zomato API Analysis is one of the most useful analysis for foodies who want to taste the best cuisines of every part of the world which lies in their budget. This analysis is also for those who want to find the value for money restaurants in various parts of the country for the cuisines. Additionally, this analysis caters the needs of people who are striving to get the best cuisine of the country and which locality of that country serves that cuisines with maximum number of restaurants.:hotsprings:
### For more information on Zomato API and Zomato API key
• Visit : [https://developers.zomato.com/api#headline1](https://developers.zomato.com/api#headline1)<br>
• Data Collection: [https://developers.zomato.com/documentation]( https://developers.zomato.com/documentation)
## Data
### Fetching the data:
• Data has been collected from the Zomato API in the form of .json files(raw data)
using the url=[https://developers.zomato.com/api/v2.1/search?entity_id=1&entity_type=city&start=1&count=20](https://developers.zomato.com/api/v2.1/search?entity_id=1&entity_type=city&start=1&count=20)<br>
• Raw data can be seen [here](https://github.com/MehtaShruti/mehta_shruti_spring17/tree/master/Zomato_API_Analysis/Raw_Data)
### Data Collection:
Data collected can be seen as a raw .json file [here](https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/Raw_Data/file1.json)
### Data Processing :
Data Processing has been done on the following categories: [Processed_Data](https://github.com/MehtaShruti/mehta_shruti_spring17/tree/master/Zomato_API_Analysis/Processed_Data)
1. Currency
2. City
3. Location
4. Rating Text
### Data Storage:
The collected data has been stored in the Comma Separated Value file [Zomato.csv](https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/csv/zomato.csv). Each restaurant in the dataset is uniquely identified by its Restaurant Id. Every Restaurant contains the following variables:
• **Restaurant Id:** Unique id of every restaurant across various cities of the world<br>
• **Restaurant Name:** Name of the restaurant<br>
• **Country Code:** Country in which restaurant is located<br>
• **City:** City in which restaurant is located<br>
• **Address:** Address of the restaurant<br>
• **Locality:** Location in the city<br>
• **Locality Verbose:** Detailed description of the locality<br>
• **Longitude:** Longitude coordinate of the restaurant's location<br>
• **Latitude:** Latitude coordinate of the restaurant's location<br>
• **Cuisines:** Cuisines offered by the restaurant<br>
• **Average Cost for two:** Cost for two people in different currencies :couple: <br>
• **Currency:** Currency of the country<br>
• **Has Table booking:** yes/no<br>
• **Has Online delivery:** yes/ no<br>
• **Is delivering:** yes/ no<br>
• **Switch to order menu:** yes/no<br>
• **Price range:** range of price of food<br>
• **Aggregate Rating:** Average rating out of 5<br>
• **Rating color:** depending upon the average rating color<br>
• **Rating text:** text on the basis of rating of rating<br>
• **Votes:** Number of ratings casted by people<br>
*******************************************************************************************
# Analysis Performed:
## Analysis I: highest and lowest rated restaurants in the city (India and U.S.A)
### Objective:
To evaluate the Highest Rated and Lowest Rated Restaurant of the City in all the countries. Graph plotted only for countries with maximum restaurants (India and U.S.A)
### Approach:
Using pandas, grouping 'Country' and 'City', the aggregate rating is calculated and then the top and least rated restaurants are found for every city in that country
### Steps:
1. The file(zomato.csv) is read for the input to the data frame.
2. The data is grouped by Country Code and City and reverse sorted to evaluate to the highest rated and lowest rated restaurants of all the countries.
3. Merge the two data frames with highest rated and lowest rated restaurants in the city.
4. Filter the data for two countries India and U.S.A.
5. Plot the graph for two countries depicting all the cities in two countries with the highest and lowest rated restaurant with the location.
### Deliverables:
• csv: **Analysis1.csv** <br>
[Download here]( https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/csv/Analysis1.csv)<br>
<img width="1280" alt="analysis1" src="https://cloud.githubusercontent.com/assets/25044358/25308264/97792932-277e-11e7-9afd-5035a708ce78.png">
• Grouped Bar Chart1: **Restaurants rating in India**<br>
[Download here]( https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/img/Analysis1.1_graph.png)<br>
<img width="735" alt="analysis1 1_graph" src="https://cloud.githubusercontent.com/assets/25044358/25308262/9759e90a-277e-11e7-822a-2d9a4569f7fa.png">
• Grouped Bar Chart2: **Restaurants rating in U.S.A**<br>
[Download here]( https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/img/Analysis1.2_graph.png)<br>
<img width="715" alt="analysis1 2_graph" src="https://cloud.githubusercontent.com/assets/25044358/25308263/9778cd0c-277e-11e7-8ad4-d350a0a0d422.png">
### Conclusion:
:thumbsup: From the analysis above (graphs and csv), we can easily determine the highest and lowest rated restaurant :hotel: of every city in the United States :us: and India, depending upon which we may plan to choose our restaurant for the location we are at. :smile:
*******************************************************************************************
## Analysis II: Populr cuisine of a country with location where it is served and number of restaurants serving that cuisine in that location
### Objective:
To evaluate the most popular cuisine of the world sold in a country and which locality in that country has most number of outlets selling that cuisine. Graph plotted only for the best cuisine of the country and the location where this cuisine is most popular with the count of places selling that cuisine.
### Approach:
Using pandas, splitting the multiple cuisines and stacking them up with the location, melting them with locality, grouping the locality and then country code and then reverse sorting the count of restaurants in the country with their names.
### Steps:
1. The file(zomato.csv) is read for the input to the data frame.<br>
2. DataFrame is filtered for all not null values for cuisines.<br>
3. Series Cuisines is splitted by ‘,’ for separate different cuisine values as a new dataframe.<br>
4. Concatenate the dataframe Zomato with cuisines.<br>
5. For every locality stack the cuisines(all cuisines displayed row wise than columns).<br>
6. Melt the cuisine values for every row.<br>
7. The rows are grouped by Locality Verbose and sorted by reverse count and store it in a dataframe ‘loc’.<br>
8. Merge zomato and loc dataframe on Locality Verbose.<br>
9. Group by the dataframe in step 8 on ‘Country Code’.<br>
10. Reverse Sort the data on the basis of the Number of restaurants in the city for that cuisines.<br>
11. Plot the graph for the most popular cuisines of the world and which location in that country they are most popular and how many restaurants in that location are selling them.<br>
12. Horizontal Bar graph 2 represents the most popular cuisines of the India and which location in India they are most popular and how many restaurants in that location are selling them.<br>
### Deliverables:
• csv: **Analysis2.csv**<br>
[Download here]( https://github.com/MehtaShruti/mehta_shruti_spring17/blob/master/Zomato_API_Analysis/csv/Analysis2.csv)<br>
<img width="1280" alt="analysis2" src="https://cloud.gi
没有合适的资源?快使用搜索试试~ 我知道了~
分析了美国和印度各个城市的高评分和低评分餐厅_Jupyter Notebook_下载.zip
共9582个文件
json:9562个
png:9个
csv:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 159 浏览量
2023-04-23
09:57:54
上传
评论
收藏 24.08MB ZIP 举报
温馨提示
分析了美国和印度各个城市的高评分和低评分餐厅_Jupyter Notebook_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
分析了美国和印度各个城市的高评分和低评分餐厅_Jupyter Notebook_下载.zip (9582个子文件)
zomato.csv 2.15MB
Analysis1.csv 8KB
Analysis3.csv 907B
Analysis2.csv 507B
Analysis2.1.csv 304B
Zomato_Analysis2.ipynb 4.26MB
Zomato_Analysis1.ipynb 4.17MB
Zomato_Analysis3.ipynb 301KB
Zomato_Analysis_DataStorage_and_Pre-processing.ipynb 29KB
file2.json 19.08MB
file4.json 15.67MB
file3.json 14.89MB
file1.json 2.1MB
file5.json 654KB
The Piano Man Jazz Club_18138443.json 67KB
Informal_18168125.json 30KB
Gastronomica Kitchen & Bar_310776.json 17KB
Dilli 32 - The Leela Ambience Convention Hotel_300695.json 11KB
Brooklyn Blues_2100921.json 11KB
Hard Rock Cafe_201531.json 10KB
Antares_18022206.json 10KB
Delhi Pavilion - Sheraton New Delhi Hotel_18133508.json 9KB
7 Barrel Brew Pub_310737.json 9KB
Koramangala Social_18385443.json 9KB
Cho Gao - Crowne Plaza Abu Dhabi_5700052.json 9KB
Elation_18034050.json 9KB
Summer House Cafe_307490.json 8KB
Basil With A Twist_70497.json 8KB
Vine - The St. Regis_6201130.json 8KB
Pebble Street_309859.json 8KB
3 Pegs Down_18245284.json 7KB
The Junkyard Cafe_313256.json 7KB
Exotica_90744.json 7KB
Moti Mahal Delux- Legendary Culinary_18157400.json 6KB
Marine Drivve - Club & Courtyard_18472653.json 6KB
What's Up_18017615.json 6KB
Baby Dragon Bar & Restaurant_1701.json 6KB
Mutual's_103019.json 6KB
Depot48_18363391.json 6KB
Showstopper_18415387.json 6KB
Taksim_18414499.json 6KB
Sabai Thai - The Westin Doha Hotel & Spa_18261203.json 6KB
Hoot_18422898.json 6KB
The Barbeque Company_18317477.json 6KB
Farzi Cafe_18354483.json 6KB
Big Brewsky_58882.json 6KB
Ion Club & Dining Lounge_5230.json 6KB
My Bar Grill_304296.json 6KB
Carnival By Tresind_18254160.json 6KB
Kaidi Kitchen_70092.json 6KB
Indigo Delicatessen_18337929.json 6KB
Londoners_18241531.json 5KB
The Immigrant Cafe_310097.json 5KB
Cafe on 3 - Holiday Inn_306510.json 5KB
Maamouchee @ My Way_3250.json 5KB
Pho King Awesome_18312632.json 5KB
Puffizza_113537.json 5KB
Ding Ding_18377926.json 5KB
FIO Cookhouse and Bar_304239.json 5KB
Maharaja Bhog_206488.json 5KB
Target Ice Cream & Bakers_18350112.json 5KB
Imperfecto_301442.json 5KB
Lakhori - Haveli Dharampura_18264992.json 5KB
The Black Pearl_54162.json 5KB
Dakshin - Sheraton New Delhi Hotel_2739.json 5KB
Spice Caves_801170.json 5KB
{Niche} - Cafe & Bar_18222559.json 5KB
Chi Asian Cookhouse_18366022.json 5KB
Hard Rock Cafe_305905.json 5KB
The Headquarter_18381259.json 5KB
Jungle Jamboree_18157384.json 5KB
Tresind - Nassima Royal Hotel_208850.json 5KB
7 Degrees Brauhaus_8241.json 5KB
Qubitos - The Terrace Cafe_18037817.json 5KB
Imperfecto_18421057.json 4KB
Chhalava - छLava_18435305.json 4KB
Grub Shack_210139.json 4KB
Yo! China_18224547.json 4KB
Blooms - Eros Hotel_305545.json 4KB
CG's - Lounge Cafe Bar_18222577.json 4KB
My Bar Lounge & Restaurant_6957.json 4KB
Beijing Street_18279452.json 4KB
Square - Sayaji Hotel_1400186.json 4KB
Route 04_4815.json 4KB
Caffe 9_18408058.json 4KB
Club 44_18433903.json 4KB
Beijing Street_18089255.json 4KB
House Of Flavours_1600212.json 4KB
Sodam Korean Restaurant_6314605.json 4KB
Cherry Bar - The Leela Ambience Convention Hotel_300697.json 4KB
The Urban Chulha_312978.json 4KB
Jungle Jamboree_18466951.json 4KB
52 Janpath_18306547.json 4KB
Tamra - Shangri-La's - Eros Hotel_311369.json 4KB
Hogshead_18136493.json 4KB
Culture Club - Bar De Tapas_18289339.json 4KB
Piali - The Curry Bistro_18294220.json 4KB
Cafe G - Crowne Plaza_4358.json 4KB
Guppy_304931.json 4KB
The Feast House_18446504.json 4KB
共 9582 条
- 1
- 2
- 3
- 4
- 5
- 6
- 96
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功