diff --git a/Zomatodataset/Country-Code.xlsx b/Zomatodataset/Country-Code.xlsx new file mode 100644 index 0000000..aac55f2 Binary files /dev/null and b/Zomatodataset/Country-Code.xlsx differ diff --git a/Zomatodataset/Zomato.ipynb b/Zomatodataset/Zomato.ipynb new file mode 100644 index 0000000..97cf4ad --- /dev/null +++ b/Zomatodataset/Zomato.ipynb @@ -0,0 +1,2814 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "4e0c25f4", + "metadata": { + "id": "4e0c25f4" + }, + "source": [ + "## Zomato Dataset Exploratory Data Analysis" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c7807f09", + "metadata": { + "id": "c7807f09" + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import seaborn as sns\n", + "%matplotlib inline" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "237756b9", + "metadata": { + "id": "237756b9", + "outputId": "3e99a3dc-47f0-4454-ee74-e272cf085d9d" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | Restaurant ID | \n", + "Restaurant Name | \n", + "Country Code | \n", + "City | \n", + "Address | \n", + "Locality | \n", + "Locality Verbose | \n", + "Longitude | \n", + "Latitude | \n", + "Cuisines | \n", + "... | \n", + "Currency | \n", + "Has Table booking | \n", + "Has Online delivery | \n", + "Is delivering now | \n", + "Switch to order menu | \n", + "Price range | \n", + "Aggregate rating | \n", + "Rating color | \n", + "Rating text | \n", + "Votes | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "6317637 | \n", + "Le Petit Souffle | \n", + "162 | \n", + "Makati City | \n", + "Third Floor, Century City Mall, Kalayaan Avenu... | \n", + "Century City Mall, Poblacion, Makati City | \n", + "Century City Mall, Poblacion, Makati City, Mak... | \n", + "121.027535 | \n", + "14.565443 | \n", + "French, Japanese, Desserts | \n", + "... | \n", + "Botswana Pula(P) | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "3 | \n", + "4.8 | \n", + "Dark Green | \n", + "Excellent | \n", + "314 | \n", + "
1 | \n", + "6304287 | \n", + "Izakaya Kikufuji | \n", + "162 | \n", + "Makati City | \n", + "Little Tokyo, 2277 Chino Roces Avenue, Legaspi... | \n", + "Little Tokyo, Legaspi Village, Makati City | \n", + "Little Tokyo, Legaspi Village, Makati City, Ma... | \n", + "121.014101 | \n", + "14.553708 | \n", + "Japanese | \n", + "... | \n", + "Botswana Pula(P) | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "3 | \n", + "4.5 | \n", + "Dark Green | \n", + "Excellent | \n", + "591 | \n", + "
2 | \n", + "6300002 | \n", + "Heat - Edsa Shangri-La | \n", + "162 | \n", + "Mandaluyong City | \n", + "Edsa Shangri-La, 1 Garden Way, Ortigas, Mandal... | \n", + "Edsa Shangri-La, Ortigas, Mandaluyong City | \n", + "Edsa Shangri-La, Ortigas, Mandaluyong City, Ma... | \n", + "121.056831 | \n", + "14.581404 | \n", + "Seafood, Asian, Filipino, Indian | \n", + "... | \n", + "Botswana Pula(P) | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "4 | \n", + "4.4 | \n", + "Green | \n", + "Very Good | \n", + "270 | \n", + "
3 | \n", + "6318506 | \n", + "Ooma | \n", + "162 | \n", + "Mandaluyong City | \n", + "Third Floor, Mega Fashion Hall, SM Megamall, O... | \n", + "SM Megamall, Ortigas, Mandaluyong City | \n", + "SM Megamall, Ortigas, Mandaluyong City, Mandal... | \n", + "121.056475 | \n", + "14.585318 | \n", + "Japanese, Sushi | \n", + "... | \n", + "Botswana Pula(P) | \n", + "No | \n", + "No | \n", + "No | \n", + "No | \n", + "4 | \n", + "4.9 | \n", + "Dark Green | \n", + "Excellent | \n", + "365 | \n", + "
4 | \n", + "6314302 | \n", + "Sambo Kojin | \n", + "162 | \n", + "Mandaluyong City | \n", + "Third Floor, Mega Atrium, SM Megamall, Ortigas... | \n", + "SM Megamall, Ortigas, Mandaluyong City | \n", + "SM Megamall, Ortigas, Mandaluyong City, Mandal... | \n", + "121.057508 | \n", + "14.584450 | \n", + "Japanese, Korean | \n", + "... | \n", + "Botswana Pula(P) | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "4 | \n", + "4.8 | \n", + "Dark Green | \n", + "Excellent | \n", + "229 | \n", + "
5 rows × 21 columns
\n", + "\n", + " | Restaurant ID | \n", + "Country Code | \n", + "Longitude | \n", + "Latitude | \n", + "Average Cost for two | \n", + "Price range | \n", + "Aggregate rating | \n", + "Votes | \n", + "
---|---|---|---|---|---|---|---|---|
count | \n", + "9.551000e+03 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "9551.000000 | \n", + "
mean | \n", + "9.051128e+06 | \n", + "18.365616 | \n", + "64.126574 | \n", + "25.854381 | \n", + "1199.210763 | \n", + "1.804837 | \n", + "2.666370 | \n", + "156.909748 | \n", + "
std | \n", + "8.791521e+06 | \n", + "56.750546 | \n", + "41.467058 | \n", + "11.007935 | \n", + "16121.183073 | \n", + "0.905609 | \n", + "1.516378 | \n", + "430.169145 | \n", + "
min | \n", + "5.300000e+01 | \n", + "1.000000 | \n", + "-157.948486 | \n", + "-41.330428 | \n", + "0.000000 | \n", + "1.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "
25% | \n", + "3.019625e+05 | \n", + "1.000000 | \n", + "77.081343 | \n", + "28.478713 | \n", + "250.000000 | \n", + "1.000000 | \n", + "2.500000 | \n", + "5.000000 | \n", + "
50% | \n", + "6.004089e+06 | \n", + "1.000000 | \n", + "77.191964 | \n", + "28.570469 | \n", + "400.000000 | \n", + "2.000000 | \n", + "3.200000 | \n", + "31.000000 | \n", + "
75% | \n", + "1.835229e+07 | \n", + "1.000000 | \n", + "77.282006 | \n", + "28.642758 | \n", + "700.000000 | \n", + "2.000000 | \n", + "3.700000 | \n", + "131.000000 | \n", + "
max | \n", + "1.850065e+07 | \n", + "216.000000 | \n", + "174.832089 | \n", + "55.976980 | \n", + "800000.000000 | \n", + "4.000000 | \n", + "4.900000 | \n", + "10934.000000 | \n", + "
\n", + " | Country Code | \n", + "Country | \n", + "
---|---|---|
0 | \n", + "1 | \n", + "India | \n", + "
1 | \n", + "14 | \n", + "Australia | \n", + "
2 | \n", + "30 | \n", + "Brazil | \n", + "
3 | \n", + "37 | \n", + "Canada | \n", + "
4 | \n", + "94 | \n", + "Indonesia | \n", + "
\n", + " | Restaurant ID | \n", + "Restaurant Name | \n", + "Country Code | \n", + "City | \n", + "Address | \n", + "Locality | \n", + "Locality Verbose | \n", + "Longitude | \n", + "Latitude | \n", + "Cuisines | \n", + "... | \n", + "Has Table booking | \n", + "Has Online delivery | \n", + "Is delivering now | \n", + "Switch to order menu | \n", + "Price range | \n", + "Aggregate rating | \n", + "Rating color | \n", + "Rating text | \n", + "Votes | \n", + "Country | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "6317637 | \n", + "Le Petit Souffle | \n", + "162 | \n", + "Makati City | \n", + "Third Floor, Century City Mall, Kalayaan Avenu... | \n", + "Century City Mall, Poblacion, Makati City | \n", + "Century City Mall, Poblacion, Makati City, Mak... | \n", + "121.027535 | \n", + "14.565443 | \n", + "French, Japanese, Desserts | \n", + "... | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "3 | \n", + "4.8 | \n", + "Dark Green | \n", + "Excellent | \n", + "314 | \n", + "Phillipines | \n", + "
1 | \n", + "6304287 | \n", + "Izakaya Kikufuji | \n", + "162 | \n", + "Makati City | \n", + "Little Tokyo, 2277 Chino Roces Avenue, Legaspi... | \n", + "Little Tokyo, Legaspi Village, Makati City | \n", + "Little Tokyo, Legaspi Village, Makati City, Ma... | \n", + "121.014101 | \n", + "14.553708 | \n", + "Japanese | \n", + "... | \n", + "Yes | \n", + "No | \n", + "No | \n", + "No | \n", + "3 | \n", + "4.5 | \n", + "Dark Green | \n", + "Excellent | \n", + "591 | \n", + "Phillipines | \n", + "
2 rows × 22 columns
\n", + "\n", + " | Aggregate rating | \n", + "Rating color | \n", + "Rating text | \n", + "Rating Count | \n", + "
---|---|---|---|---|
0 | \n", + "0.0 | \n", + "White | \n", + "Not rated | \n", + "2148 | \n", + "
1 | \n", + "1.8 | \n", + "Red | \n", + "Poor | \n", + "1 | \n", + "
2 | \n", + "1.9 | \n", + "Red | \n", + "Poor | \n", + "2 | \n", + "
3 | \n", + "2.0 | \n", + "Red | \n", + "Poor | \n", + "7 | \n", + "
4 | \n", + "2.1 | \n", + "Red | \n", + "Poor | \n", + "15 | \n", + "
5 | \n", + "2.2 | \n", + "Red | \n", + "Poor | \n", + "27 | \n", + "
6 | \n", + "2.3 | \n", + "Red | \n", + "Poor | \n", + "47 | \n", + "
7 | \n", + "2.4 | \n", + "Red | \n", + "Poor | \n", + "87 | \n", + "
8 | \n", + "2.5 | \n", + "Orange | \n", + "Average | \n", + "110 | \n", + "
9 | \n", + "2.6 | \n", + "Orange | \n", + "Average | \n", + "191 | \n", + "
10 | \n", + "2.7 | \n", + "Orange | \n", + "Average | \n", + "250 | \n", + "
11 | \n", + "2.8 | \n", + "Orange | \n", + "Average | \n", + "315 | \n", + "
12 | \n", + "2.9 | \n", + "Orange | \n", + "Average | \n", + "381 | \n", + "
13 | \n", + "3.0 | \n", + "Orange | \n", + "Average | \n", + "468 | \n", + "
14 | \n", + "3.1 | \n", + "Orange | \n", + "Average | \n", + "519 | \n", + "
15 | \n", + "3.2 | \n", + "Orange | \n", + "Average | \n", + "522 | \n", + "
16 | \n", + "3.3 | \n", + "Orange | \n", + "Average | \n", + "483 | \n", + "
17 | \n", + "3.4 | \n", + "Orange | \n", + "Average | \n", + "498 | \n", + "
18 | \n", + "3.5 | \n", + "Yellow | \n", + "Good | \n", + "480 | \n", + "
19 | \n", + "3.6 | \n", + "Yellow | \n", + "Good | \n", + "458 | \n", + "
20 | \n", + "3.7 | \n", + "Yellow | \n", + "Good | \n", + "427 | \n", + "
21 | \n", + "3.8 | \n", + "Yellow | \n", + "Good | \n", + "400 | \n", + "
22 | \n", + "3.9 | \n", + "Yellow | \n", + "Good | \n", + "335 | \n", + "
23 | \n", + "4.0 | \n", + "Green | \n", + "Very Good | \n", + "266 | \n", + "
24 | \n", + "4.1 | \n", + "Green | \n", + "Very Good | \n", + "274 | \n", + "
25 | \n", + "4.2 | \n", + "Green | \n", + "Very Good | \n", + "221 | \n", + "
26 | \n", + "4.3 | \n", + "Green | \n", + "Very Good | \n", + "174 | \n", + "
27 | \n", + "4.4 | \n", + "Green | \n", + "Very Good | \n", + "144 | \n", + "
28 | \n", + "4.5 | \n", + "Dark Green | \n", + "Excellent | \n", + "95 | \n", + "
29 | \n", + "4.6 | \n", + "Dark Green | \n", + "Excellent | \n", + "78 | \n", + "
30 | \n", + "4.7 | \n", + "Dark Green | \n", + "Excellent | \n", + "42 | \n", + "
31 | \n", + "4.8 | \n", + "Dark Green | \n", + "Excellent | \n", + "25 | \n", + "
32 | \n", + "4.9 | \n", + "Dark Green | \n", + "Excellent | \n", + "61 | \n", + "
\n", + " | Aggregate rating | \n", + "Rating color | \n", + "Rating text | \n", + "Rating Count | \n", + "
---|---|---|---|---|
0 | \n", + "0.0 | \n", + "White | \n", + "Not rated | \n", + "2148 | \n", + "
1 | \n", + "1.8 | \n", + "Red | \n", + "Poor | \n", + "1 | \n", + "
2 | \n", + "1.9 | \n", + "Red | \n", + "Poor | \n", + "2 | \n", + "
3 | \n", + "2.0 | \n", + "Red | \n", + "Poor | \n", + "7 | \n", + "
4 | \n", + "2.1 | \n", + "Red | \n", + "Poor | \n", + "15 | \n", + "
\n", + " | Aggregate rating | \n", + "Rating color | \n", + "Rating text | \n", + "Rating Count | \n", + "
---|---|---|---|---|
0 | \n", + "0.0 | \n", + "White | \n", + "Not rated | \n", + "2148 | \n", + "
1 | \n", + "1.8 | \n", + "Red | \n", + "Poor | \n", + "1 | \n", + "
2 | \n", + "1.9 | \n", + "Red | \n", + "Poor | \n", + "2 | \n", + "
3 | \n", + "2.0 | \n", + "Red | \n", + "Poor | \n", + "7 | \n", + "
4 | \n", + "2.1 | \n", + "Red | \n", + "Poor | \n", + "15 | \n", + "
5 | \n", + "2.2 | \n", + "Red | \n", + "Poor | \n", + "27 | \n", + "
6 | \n", + "2.3 | \n", + "Red | \n", + "Poor | \n", + "47 | \n", + "
7 | \n", + "2.4 | \n", + "Red | \n", + "Poor | \n", + "87 | \n", + "
8 | \n", + "2.5 | \n", + "Orange | \n", + "Average | \n", + "110 | \n", + "
9 | \n", + "2.6 | \n", + "Orange | \n", + "Average | \n", + "191 | \n", + "
10 | \n", + "2.7 | \n", + "Orange | \n", + "Average | \n", + "250 | \n", + "
11 | \n", + "2.8 | \n", + "Orange | \n", + "Average | \n", + "315 | \n", + "
12 | \n", + "2.9 | \n", + "Orange | \n", + "Average | \n", + "381 | \n", + "
13 | \n", + "3.0 | \n", + "Orange | \n", + "Average | \n", + "468 | \n", + "
14 | \n", + "3.1 | \n", + "Orange | \n", + "Average | \n", + "519 | \n", + "
15 | \n", + "3.2 | \n", + "Orange | \n", + "Average | \n", + "522 | \n", + "
16 | \n", + "3.3 | \n", + "Orange | \n", + "Average | \n", + "483 | \n", + "
17 | \n", + "3.4 | \n", + "Orange | \n", + "Average | \n", + "498 | \n", + "
18 | \n", + "3.5 | \n", + "Yellow | \n", + "Good | \n", + "480 | \n", + "
19 | \n", + "3.6 | \n", + "Yellow | \n", + "Good | \n", + "458 | \n", + "
20 | \n", + "3.7 | \n", + "Yellow | \n", + "Good | \n", + "427 | \n", + "
21 | \n", + "3.8 | \n", + "Yellow | \n", + "Good | \n", + "400 | \n", + "
22 | \n", + "3.9 | \n", + "Yellow | \n", + "Good | \n", + "335 | \n", + "
23 | \n", + "4.0 | \n", + "Green | \n", + "Very Good | \n", + "266 | \n", + "
24 | \n", + "4.1 | \n", + "Green | \n", + "Very Good | \n", + "274 | \n", + "
25 | \n", + "4.2 | \n", + "Green | \n", + "Very Good | \n", + "221 | \n", + "
26 | \n", + "4.3 | \n", + "Green | \n", + "Very Good | \n", + "174 | \n", + "
27 | \n", + "4.4 | \n", + "Green | \n", + "Very Good | \n", + "144 | \n", + "
28 | \n", + "4.5 | \n", + "Dark Green | \n", + "Excellent | \n", + "95 | \n", + "
29 | \n", + "4.6 | \n", + "Dark Green | \n", + "Excellent | \n", + "78 | \n", + "
30 | \n", + "4.7 | \n", + "Dark Green | \n", + "Excellent | \n", + "42 | \n", + "
31 | \n", + "4.8 | \n", + "Dark Green | \n", + "Excellent | \n", + "25 | \n", + "
32 | \n", + "4.9 | \n", + "Dark Green | \n", + "Excellent | \n", + "61 | \n", + "
\n", + " | Country | \n", + "0 | \n", + "
---|---|---|
0 | \n", + "Brazil | \n", + "5 | \n", + "
1 | \n", + "India | \n", + "2139 | \n", + "
2 | \n", + "United Kingdom | \n", + "1 | \n", + "
3 | \n", + "United States | \n", + "3 | \n", + "
\n", + " | Aggregate rating | \n", + "Country | \n", + "0 | \n", + "
---|---|---|---|
0 | \n", + "0.0 | \n", + "Brazil | \n", + "5 | \n", + "
1 | \n", + "0.0 | \n", + "India | \n", + "2139 | \n", + "
2 | \n", + "0.0 | \n", + "United Kingdom | \n", + "1 | \n", + "
3 | \n", + "0.0 | \n", + "United States | \n", + "3 | \n", + "
4 | \n", + "1.8 | \n", + "India | \n", + "1 | \n", + "
\n", + " | Country | \n", + "Currency | \n", + "0 | \n", + "
---|---|---|---|
0 | \n", + "Australia | \n", + "Dollar($) | \n", + "24 | \n", + "
1 | \n", + "Brazil | \n", + "Brazilian Real(R$) | \n", + "60 | \n", + "
2 | \n", + "Canada | \n", + "Dollar($) | \n", + "4 | \n", + "
3 | \n", + "India | \n", + "Indian Rupees(Rs.) | \n", + "8652 | \n", + "
4 | \n", + "Indonesia | \n", + "Indonesian Rupiah(IDR) | \n", + "21 | \n", + "
5 | \n", + "New Zealand | \n", + "NewZealand($) | \n", + "40 | \n", + "
6 | \n", + "Phillipines | \n", + "Botswana Pula(P) | \n", + "22 | \n", + "
7 | \n", + "Qatar | \n", + "Qatari Rial(QR) | \n", + "20 | \n", + "
8 | \n", + "Singapore | \n", + "Dollar($) | \n", + "20 | \n", + "
9 | \n", + "South Africa | \n", + "Rand(R) | \n", + "60 | \n", + "
10 | \n", + "Sri Lanka | \n", + "Sri Lankan Rupee(LKR) | \n", + "20 | \n", + "
11 | \n", + "Turkey | \n", + "Turkish Lira(TL) | \n", + "34 | \n", + "
12 | \n", + "UAE | \n", + "Emirati Diram(AED) | \n", + "60 | \n", + "
13 | \n", + "United Kingdom | \n", + "Pounds(£) | \n", + "80 | \n", + "
14 | \n", + "United States | \n", + "Dollar($) | \n", + "434 | \n", + "
\n", + " | Has Online delivery | \n", + "Country | \n", + "0 | \n", + "
---|---|---|---|
0 | \n", + "No | \n", + "Australia | \n", + "24 | \n", + "
1 | \n", + "No | \n", + "Brazil | \n", + "60 | \n", + "
2 | \n", + "No | \n", + "Canada | \n", + "4 | \n", + "
3 | \n", + "No | \n", + "India | \n", + "6229 | \n", + "
4 | \n", + "No | \n", + "Indonesia | \n", + "21 | \n", + "
5 | \n", + "No | \n", + "New Zealand | \n", + "40 | \n", + "
6 | \n", + "No | \n", + "Phillipines | \n", + "22 | \n", + "
7 | \n", + "No | \n", + "Qatar | \n", + "20 | \n", + "
8 | \n", + "No | \n", + "Singapore | \n", + "20 | \n", + "
9 | \n", + "No | \n", + "South Africa | \n", + "60 | \n", + "
10 | \n", + "No | \n", + "Sri Lanka | \n", + "20 | \n", + "
11 | \n", + "No | \n", + "Turkey | \n", + "34 | \n", + "
12 | \n", + "No | \n", + "UAE | \n", + "32 | \n", + "
13 | \n", + "No | \n", + "United Kingdom | \n", + "80 | \n", + "
14 | \n", + "No | \n", + "United States | \n", + "434 | \n", + "
15 | \n", + "Yes | \n", + "India | \n", + "2423 | \n", + "
16 | \n", + "Yes | \n", + "UAE | \n", + "28 | \n", + "