Learn practical skills, build real-world projects, and advance your career

Exploratory Data Analysis of Restaurants on Zomato

This notebook will explore the zomato restaurants dataset and find out interesting facts and insights. The dataset is available on Kaggle. This is a part of the online course Data Analysis with Python: Zero to Pandas conducted by Jovian.ml which has excellent explanation of all topics and hands-on practice as well.

How to run the code

This is an executable Jupyter notebook hosted on Jovian.ml, a platform for sharing data science projects. You can run and experiment with the code in a couple of ways: using free online resources (recommended) or on your own computer.

Option 1: Running using free online resources (1-click, recommended)

The easiest way to start executing this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks. You can also select "Run on Colab" or "Run on Kaggle".

Option 2: Running on your computer locally
  1. Install Conda by following these instructions. Add Conda binaries to your system PATH, so you can use the conda command on your terminal.

  2. Create a Conda environment and install the required libraries by running these commands on the terminal:

conda create -n zerotopandas -y python=3.8 
conda activate zerotopandas
pip install jovian jupyter numpy pandas matplotlib seaborn opendatasets --upgrade
  1. Press the "Clone" button above to copy the command for downloading the notebook, and run it on the terminal. This will create a new directory and download the notebook. The command will look something like this:
jovian clone notebook-owner/notebook-id
  1. Enter the newly created directory using cd directory-name and start the Jupyter notebook.
jupyter notebook

You can now access Jupyter's web interface by clicking the link that shows up on the terminal or by visiting http://localhost:8888 on your browser. Click on the notebook file (it has a .ipynb extension) to open it.

Let's install and import the required libraries for importing the data and analysis.

!pip install jovian opendatasets --upgrade --quiet
!pip install jovian --upgrade -q
!pip install plotly==4.14.3
Collecting plotly==4.14.3 Downloading plotly-4.14.3-py2.py3-none-any.whl (13.2 MB) |████████████████████████████████| 13.2 MB 103 kB/s eta 0:00:01 Requirement already satisfied: six in /opt/conda/lib/python3.8/site-packages (from plotly==4.14.3) (1.15.0) Collecting retrying>=1.3.3 Downloading retrying-1.3.3.tar.gz (10 kB) Building wheels for collected packages: retrying Building wheel for retrying (setup.py) ... done Created wheel for retrying: filename=retrying-1.3.3-py3-none-any.whl size=11429 sha256=2e7bf9d32fefb9ca0e04cf654129b8629d286e11db8c4cc6cf564fd7ccd1c246 Stored in directory: /home/jovyan/.cache/pip/wheels/c4/a7/48/0a434133f6d56e878ca511c0e6c38326907c0792f67b476e56 Successfully built retrying Installing collected packages: retrying, plotly Successfully installed plotly-4.14.3 retrying-1.3.3
import opendatasets as od
import jovian
import os
import pandas as pd
import numpy as np