0% found this document useful (0 votes)
31 views33 pages

Comprehending The Statistics of Zomato

The document discusses a Python program that analyzes the statistics and fiscal data of the food delivery company Zomato over several years. It uses the Pandas library to manage and analyze the records of customers, restaurants, and delivery partners. The program allows a user to view the statistical trends of Zomato's sales and business over time.

Uploaded by

Gunjan Nautiyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views33 pages

Comprehending The Statistics of Zomato

The document discusses a Python program that analyzes the statistics and fiscal data of the food delivery company Zomato over several years. It uses the Pandas library to manage and analyze the records of customers, restaurants, and delivery partners. The program allows a user to view the statistical trends of Zomato's sales and business over time.

Uploaded by

Gunjan Nautiyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

COMPREHENDING THE

STATISTICS OF ZOMATO

By- Gunjan Nautiyal


Tanisha Sharma
Aaron Chand
Index

S.no Title Pg.No


1 Declaration 1
2 Abstract 2
3 Python Pandas 3
Introduction

4 Key Features of Pandas 4


5 Introduction to matplotlib 5
6 Introduction to Topic 6
7 System Requirements 7
8 Database Design 8
9 Input(Coding) 10
10 Output 16
11 Conclusion 24
12 Bibliography 25
Declaration

I hereby declare that the project work titled


“ZOMATO” submitted to the
ASIA English School for the subject of
Informatics Practices under the
guidance of Mrs. Hemlata Patel, is a record of
original work done by
me. I further declare that this project record or
any part of
this has not been submitted elsewhere for any
other class.
Place: Asia English School
Date:
Name: Gunjan Nautiyal, Tanisha Sharma &
Aaron Chand
ABSTRACT

The project titled “Zomato” has been


developed in Python 3.9.5.
The food delivery app enables the customers to
get variety of food with
exciting discounts. It offers a platform to the
restaurant partners to
expand their business. It attracts delivery
partners with job stability and
good salary.
The purpose of this case study is to manage the
records and statistics of
these stakeholders of zomato, over these years.
This Python Program shows the fiscal data and
statistics of Zomato in
years.
A user with the help of this program can
analyse the statiscal flow of
Zomato’s sales.
INTRODUCTION TO PYTHON

Python is a high-level programming language.


It is an interpreted,
interactive, object-oriented programming
language. It incorporates
modules, exceptions, dynamic typing, very high-
level dynamic data
types, and classes. It supports multiple
programming paradigms beyond
object-oriented programming, such as
procedural and functional
programming. GUIDO VAN ROSSUM was the
developer of python he
named it after the monty python’s flying circus
television program. it is
a well interpreted language and it does not
need a compiler to run.
Python is slower than compiled languages
because it cannot run codes
Directly. Python programming is less time
consuming and user friendly. It
has drew inspiration from other programming
languages like java and
c++.
The Python interpreter and the extensive
standard library are available
in source or binary form without charge for all
major platforms, and can
be freely distributed .There is occasionally
playful approaches towards
tutorials and reference materials such as
referring to spam and eggs
instead of standard foo and bar.
Often, programmers fall in love with Python
because of the increased

productivity it provides. Since there is no


compilation step, the edit-
test-debug cycle is incredibly fast. Debugging
Python programs is easy:

a bug or bad input will never cause a


segmentation fault. Instead, when
the interpreter discovers an error, it raises an
exception. When the
program doesn't catch the exception, the
interpreter prints a stack
trace. A source level debugger allows inspection
of local and global
variables, evaluation of arbitrary expressions,
setting breakpoints,
stepping through the code a line at a time, and
so on. The debugger is
written in Python itself, testifying to Python's
introspective power. On
the other hand, often the quickest way to debug
a program is to add a
few print statements to the source: the fast edit-
test-debug cycle
makes this simple approach very effective.
USES OF PYTHON

• Data visualization-
It is a developing area of interest. Python
provides ample amount of graphing libraries
with may features from simple plots to
interactive plots it has everything. We have
variety of ways to transform data into eye
catchy visual insights.

• Business Applications-
Business Applications are different than our
normal applications covering domains such as
e-commerce, ERP and many more. They require
applications which are scalable, extensible and
easily readable and Python provides us with all
these features. Platforms such as Tryton is
available to develop such business applications.

• Audio and Video Applications-


We use Python to develop applications that can
multi-task and also output media. Video and
audio applications such as TimPlayer, Cplay
have been developed using Python libraries.
They provide better stability and performance
in comparison to other media players.
• Game Development-
Python is also used in the development of
interactive games. There are libraries such as
PySoy which is a 3D game engine supporting
Python3, PyGame whichprovides functionality
and a library for game development. Games
such as Civilization-IV, Disney’s Toontown
Online, Vega Strike etc. have been built using
Python.

• Web development-
One area where Python shines is web
development. Python offers many frameworks
from which to choose from including bottle.py,
Flask, CherryPy, Pyramid, Django and web2py.
These frameworks have been used to power
some of the world's most popular sites such as
Spotify, Mozilla, Reddit, the Washington Post
and Yelp.

• Finance-
Python is increasingly being utilized in the
world of finance, often in areas such as
quantitative and qualitative analysis, it can be
a valuable tool in determining asset price
trends and predictions as well as automating
workflows across different data sources. As
mentioned already python is an ideal tool for
working with big data sets and there are many
libraries available to help with compiling and
processing information. As such its one of the
preferred languages in the finance industry.

• AI and machine learning-


Artificial intelligence projects are different
from traditional software projects. The
difference lies in the technology stack, the skills
required for AI-based projects, and the need for
in-depth research. To implement AI aspirations,
you need to use a programming language that is
stable, flexible, and has available tools. Python
provides all of these, which is why we see many
Python AI projects today.

• Data analysis-
Data is getting generated at a massive rate, by
the minute. Organizations, on the other hand,
are trying to explore every opportunity to make
sense of this data. This is where Data analytics
has become crucial in running a business
successfully. It is commonly used in companies
to drive profit and business growth. hence,
python has been a boon to data analytics due to
its accuracy.
INTRODUCTION TO PANDA

Pandas is a python library used for working


with data sets. The name is derived from the
term “panel data” an econometrics term for
data sets that include observations over
multiple time periods for the same individuals.
it’s name is a play on the phrase “python data
analysis” itself. Wes mckinney started building
what would become pandas at AQR capital
while he was a researcher there from 2007 to
2010.
Panda is an open source library that is made
mainly for working with relational or labelled
data both easily and intuitively. Pandas is a
high-level data manipulation tool used for
analyzing data it is very easy to import and
export data using Pandas library which has a
very rich set of functions. Pandas is built on
packages like numpy and matplotlib and gives
us a single, convenient place to do most of our
data analysis and visualization work. Pandas
has three important data structures, namely-
series, dataframe and panel to make the process
of analyzing data organized, effective and
efficient.
KEY FEATURES OF PANDAS

• Handling of data-
The Pandas library provides a really fast and
efficient way to manage and explore data. It
does that by providing us with Series and
DataFrames, which help us not only to
represent data efficiently but also manipulate it
in various ways. These features of Pandas is
exactly what makes it such an attractive library
for data scientists.

• Handling of missing data-


Data is often complex and very hard to
segregate. The unprocessed data involves
missing values and data.it is very necessary to
handle the missing values as they contaminate
the end results of our study.
Pandas have the handling of missing data
integrated into its library and some of its
features have you covered on this front.

• Alignment and indexing-


Having data is useless if you don’t know where
it belongs and what it tells us about. Therefore,
labeling of data is of utmost importance.
Another important factor is an organization,
without which data would be impossible to
read. These two needs: Organization and
labeling of data are perfectly taken care of by
the intelligent methods of alignment and
indexing, which can be found within Pandas.

• Input and output tools-


Pandas provide a wide array of built-in tools for
the purpose of reading and writing data. While
analyzing you will obviously need to read and
write data into data structures, web service,
databases, etc. This has been made extremely
simple with the help of Pandas’ inbuilt tools. In
other languages, it would probably take a lot of
code to generate the same results, which would
only slow down the process of analyzing.

• Multiple file formats supported-


Data these days can be found in so many
different file formats, that it becomes crucial
that libraries used for data analysis can read
various file formats. Pandas aces this sector
with a huge scope of file formats Supported.
Whether it is a JSON or CSV, Pandas can
support it all, including Excel and HDF5. This
can be considered as one of the most appealing
Python Pandas features.
• Merging and joining of datasets-
While analyzing data we constantly need to
merge and join multiple datasets to create a
final dataset to be able to properly analyze it.
This is important because if the datasets aren’t
merged or joined properly, then it is going to
affect the results adversely and we do not want
that. Pandas can help to merge various
datasets, with extreme efficiency so that we
don’t face any problems while analyzing the
data.

• A lot of time series-


These Pandas features won’t make sense to
beginners right away, but they will be of great
use in the future. These features include the
likes of moving window statistics and frequency
conversion. So, as we go deeper into learning
Pandas we will see how essential and useful
these features are, for a data scientist.

• Python support-
This feature of Pandas is the deal closer. With
an insane amount of helpful libraries at your,
disposal Python has become one of the most
sought after programming languages for data
analysis. Thus Pandas being a part of Python
and allowing us to access the other libraries
like NumPy and MatPlotLib.

• Visualize-
Visualizing the data is an important part of
data science. It is what make the results of the
study understandable by human eyes. Pandas
have an in-built ability to help you plot your
data and see the various kinds of graphs
formed. Without visualization, data analysis
would make no sense to most of the population.

• Grouping-
Having the ability to separate your data and
grouping it according to the criteria you want,
is pretty essential. With the help of the features
of Pandas like GroupBy, you can split data into
categories of your choice, according to the
criteria you set. The GroupBy function splits
the data, implements a function and then
combines the results.

• Mask data-
Sometimes, certain data is not needed for
analysis of data and thus it is important that
you filter your data according to the things you
want from it. Using the mask function in
Pandas allows you exactly to do that. It is
extremely useful since whenever it finds data
which meets the criteria you set for
elimination, it turns the data into a missing
value.

• Unique data-
Data always has a lot of repetition, therefore it
is important that you are able to analyze data
which has only unique values. This is present in
the Python Pandas features and lets the user
see the unique values in the dataset with the
function dataset.column.unique(). Where
“dataset” and “column” are the names of your
dataset and column, respectively.
INTRODUCTION TO
MATPLOTLIB

Matplotlib is an amazing visualization library


in Python for 2D plots of arrays. Matplotlib is a
multi-platform data visualization library built
on NumPy arrays and designed to work with
the broader SciPy stack. It was introduced by
John Hunter in the year 2002.
One of the greatest benefits of visualization is
that it allows us visual access to huge amounts
of data in easily digestible visuals. Matplotlib
consists of several plots like line, bar, scatter,
histogram etc.
Matplotlib comes with a wide variety of plots.
Plots helps to understand trends, patterns, and
to make correlations. They’re typically
instruments for reasoning about quantitative
information.
INTRODUCTION TO NUMPY

This article will help you get acquainted with


the widely used array-
processing library in Python, NumPy. What is
NumPy? NumPy is a general-purpose array-
processing package. It provides a high-
performance multidimensional array object,
and tools for working with these arrays. It is
the fundamental package for scientific
computing with Python. It is open-source
software. It contains various features including
these important ones:
• A powerful N-dimensional array object
• Sophisticated (broadcasting) functions
• Tools for integrating C/C++ and Fortran code
• Useful linear algebra, Fourier transform, and
random number capabilities
Besides its obvious scientific uses, NumPy can
also be used as an efficient multi-dimensional
container of generic data. Arbitrary data-types
can be defined using Numpy which allows
numPy to seamlessly and speedily integrate
with a wide variety of databases.
INTRODUCTION TO CSV

CSV stands for “Comma-separated Value” file is


a basic file format that helps the user to save
data in a tabular form.
CSV stores tabular data in a plain text with a
comma separator. Each line of tabular data will
be a record & each record consist of multiple
fields separated by commas.
Think of it as a relational table or spreadsheet
in text format. A CSV file is a plain text file that
can be viewed or edited in any text editor. Each
record is separated by being on a new line, and
each column is separated by a comma. If a
column value contains a comma that should
NOT be a column separator then that value
must be quoted.
CSV files are used for data interchange between
software with different internal file formats, for
example moving data between different vendor
implementations of spreadsheets, databases,
and data downloads from websites such as
banking transactions moving from a bank or
broker to Quicken or other financial software.
INTRODUCTION TO THE TOPIC

Zomato is a leading food delivery company


which connects customers, restaurant partners
and delivery partners to serve their multiple
needs. Zomato has three main stakeholders:
customers, restaurants, delivery partner.
Customers use this platform to search and
discover restaurants, give and read reviews,
order food, book a table or dine out.
Zomato has a huge base of restaurant partners.
It helps them get better business, recognition,
offers and more customers.
It attracts more delivery partners by providing
them stability of job and better salary, the
purpose of this case study is to manage the
stakeholders and maximise profit. This project
provides an insight into the business model of
Zomato.
Zomato being a leading food delivery brand has
flourished in around 24 countries and over
10,000 cities across the world. Its popular
initiatives include Zomato pro and hyperpure
Due to the recent covid 19 pandemic the entire
world faced a lockdown, which generated food
and health crisis worldwide. Due to the need of
the hour, Zomato launched certain features like
: contactless delivery, home style meals and
prioritise the deliveries related to covid 19
emergency. The pandemic has positively
affected the health of the business and
accelerated the company's journey towards
profitability.
INPUT:

import matplotlib.pyplot as plt


import pandas as pd
import numpy as np
data1={"ZOMATO":[7,12],"SWIGGY":[5,10],"UBER
EATS":[3,4],"FOODPANDA":[1,2],"DOMINOS":[2,2]}
comparison=pd.DataFrame(data1,index=[2019,2020])
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
lossrevenue=pd.DataFrame([revenue,loss],columns=years,index=["REVENUE($
M)","LOSS($M)"])
data2=[0.2,0.6,1.5,4.2,2.9,12.8]
growth=pd.DataFrame(data2,index=[2016,2017,2018,2019,2020,"2025(est.)"]
)
C=["3.6M","11.2M"]
R=["43K","119K"]
E=["49K","200K"]
Raise=pd.DataFrame([C,R,E],columns=[2019,2020],index=["CUSTOMERS","REST
AURANTS","DELIVERY PARTNERS"])
print("WELCOME USER!")
print("COMPREHENDING THE STATISTICS OF ZOMATO! PLEASE WAIT...")
print()
print()
print("Dear user, we have simplified the growth")
print("and stats of a massive industry-'ZOMATO'")
print("COVID-19 pandemic has been a wheel of fortune for many
businesses.")
print("Zomato-being a top rated food delivery brand had it's own ups
and downs")
print("People were insecure about the hygeiene and security of their
meal")
print("but zomato established a lot of trust within it's customers by
various remarkable updates")
print("WOULD YOU LIKE TO EXPLORE ANY FURTHER?")
a=input("-type yes or no-")
if a=="no" or a=="NO":
print("GOODBYE!")
else:
print("WHAT WOULD YOU LIKE TO SURF?")
print()
print("A-Usage of Zomato over other apps")
print("B-REVENUE V.S. LOSS")
print("C-Growth margin over 6 FINANCIAL YEARS")
print("D-Raise in USERS,RESTAURANTS,DELIVERY PARTNERS")
print("E-orders on ZOMATO and SWIGGY on NEW YEAR EVES.")
print("F-Growth in market shares")
print()
b=input("enter your choice of interest-")
if b=="A" or b=="a":
print(comparison)
apps=["ZOMATO","SWIGGY","UBER EATS","FOODPANDA","DOMINOS"]
FY2020=[12,10,4,2,2]
ex=[0.1,0,0,0,0]
plt.pie(FY2020,labels=apps,explode=ex,autopct="%2.2f%%")
plt.title(" 'Popularity of ZOMATO among other competitors(2020)'
")
plt.show()
elif b=="B" or b=="b":
print(lossrevenue)
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
plt.plot(years,revenue,marker="D",label="REVENUE")
plt.plot(years,loss,marker="D",label="LOSS")
plt.xlabel("FINANCIAL YEARS")
plt.ylabel("AMOUNT IN $MILLION")
plt.title("REVENUE V.S.LOSS")
plt.legend()
plt.show()
elif b=="C" or b=="c":
print(growth)
data2=[0.2,0.6,1.5,4.2,2.9]
years=[2016,2017,2018,2019,2020]
plt.bar(years,data2,color="black")
plt.xlabel("TOTAL GROWTH/DE-GROWTH")
plt.ylabel("FINANCIAL YEARS")
plt.title("GROWTH MARGIN(in $billions)")
plt.show()
print("DUE TO COVID CRISIS MASSIVE FALL WAS OBSERVED IN THE GRAPH
OF ZOMATO ")
elif b=="D" or b=="d":
print(Raise)
Y19=["3.6M","43K","49K"]
Y20=["11.2","119K","200K"]
P=["CUSTOMERS","RESTAURANTS","DELIVERY PARTNERS"]
x=np.arange(3)
plt.bar(x+0.00,Y19,color="green",label="financial year
2019",width=0.30)
plt.bar(x+0.40,Y20,color="yellow",label="financial year
2020",width=0.30)
plt.xticks(x,P)
plt.xlabel("(USERS,EMPLOYESS)")
plt.ylabel("COUNT(in M/K)")
plt.title("RAISE IN CLIENTS,PARTNERS AND DELIVERY PARTNERS")
plt.legend()
plt.show()
print("ZOMATO HAS OFFERED EMPLOYMENT TO MANY JOBLESS
ENTHUSIASTS")
elif b=="E" or b=="e":
print("orders per minute")
y=["2020","2021"]
s=[5500,9500]
z=[4250,7100]
plt.plot(y,s,label="swiggy",marker="+",linestyle="dashed")
plt.plot(y,z,"r",label="zomato",marker="+",linestyle="dashed")
plt.xlabel("year")
plt.ylabel("orders per min.")
plt.title("orders placed from ZOMATO or SWIGGY on NEW YEAR'S
EVE.")
plt.legend()
plt.show()
print("NEW YEARS'S EVE IS CONSIDERED TO BE THE BIGGEST FESTIVAL
CELEBRATED WORLD WIDE")
print("PEOPLE USUALLY PREFER GOING TO RESTAURANTS OR ORDERING FOOD
AND SPENDING TIME WITH THEIR FAMILY")
print("maximum amount of orders are placed during this time of the
year")
print("number of orders per minute are displayed hereby.")
elif b=="f" or b=="F":
print("GROWTH IN MARKET SHARES")
fy=["fiscal 2018","fiscal 2019","fiscal 2020","fiscal 2021"]
i=[100,277,613,362]
zo=[100,404,841,711]
plt.plot(fy,i,"g",label="INDUSTRY",marker="*")
plt.plot(fy,zo,"r",label="ZOMATO",marker="*")
plt.xlabel("financial year")
plt.ylabel("Index")
plt.title("GROWTH IN MARKET SHARE")
plt.legend()
plt.show()
else:
print("THIS OPTION DOESN'T EXIST.")
print()

print("would you like to surf further?")


a=input("yes or no?")
if a=="yes" or a=="YES":
print("WHAT WOULD YOU LIKE TO SURF?")
print()
print("A-Usage of Zomato over other apps")
print("B-REVENUE V.S. LOSS")
print("C-Growth margin over 6 FINANCIAL YEARS")
print("D-Raise in USERS,RESTAURANTS,DELIVERY PARTNERS")
print("E-orders on ZOMATO and SWIGGY on NEW YEAR EVES.")
print("F-Growth in market shares")
print()
b=input("enter your choice of interest-")
if b=="A" or b=="a":
print(comparison)
apps=["ZOMATO","SWIGGY","UBER EATS","FOODPANDA","DOMINOS"]
FY2020=[12,10,4,2,2]
ex=[0.1,0,0,0,0]
plt.pie(FY2020,labels=apps,explode=ex,autopct="%2.2f%%")
plt.title(" 'Popularity of ZOMATO among other competitors(2020)'
")
plt.show()
elif b=="B" or b=="b":
print(lossrevenue)
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
plt.plot(years,revenue,marker="D",label="REVENUE")
plt.plot(years,loss,marker="D",label="LOSS")
plt.xlabel("FINANCIAL YEARS")
plt.ylabel("AMOUNT IN $MILLION")
plt.title("REVENUE V.S.LOSS")
plt.legend()
plt.show()
elif b=="C" or b=="c":
print(growth)
data2=[0.2,0.6,1.5,4.2,2.9]
years=[2016,2017,2018,2019,2020]
plt.bar(years,data2,color="black")
plt.xlabel("TOTAL GROWTH/DE-GROWTH")
plt.ylabel("FINANCIAL YEARS")
plt.title("GROWTH MARGIN(in $billions)")
plt.show()
print("DUE TO COVID CRISIS MASSIVE FALL WAS OBSERVED IN THE GRAPH
OF ZOMATO ")
elif b=="D" or b=="d":
print(Raise)
Y19=["3.6M","43K","49K"]
Y20=["11.2","119K","200K"]
P=["CUSTOMERS","RESTAURANTS","DELIVERY PARTNERS"]
x=np.arange(3)
plt.bar(x+0.00,Y19,color="green",label="financial year
2019",width=0.30)
plt.bar(x+0.40,Y20,color="yellow",label="financial year
2020",width=0.30)
plt.xticks(x,P)
plt.xlabel("(USERS,EMPLOYESS)")
plt.ylabel("COUNT(in M/K)")
plt.title("RAISE IN CLIENTS,PARTNERS AND DELIVERY PARTNERS")
plt.legend()
plt.show()
print("ZOMATO HAS OFFERED EMPLOYMENT TO MANY JOBLESS
ENTHUSIASTS")
elif b=="E" or b=="e":
print("orders per minute")
y=["2020","2021"]
s=[5500,9500]
z=[4250,7100]
plt.plot(y,s,label="swiggy",marker="+",linestyle="dashed")
plt.plot(y,z,"r",label="zomato",marker="+",linestyle="dashed")
plt.xlabel("year")
plt.ylabel("orders per min.")
plt.title("orders placed from ZOMATO or SWIGGY on NEW YEAR'S
EVE.")
plt.legend()
plt.show()
print("NEW YEARS'S EVE IS CONSIDERED TO BE THE BIGGEST FESTIVAL
CELEBRATED WORLD WIDE")
print("PEOPLE USUALLY PREFER GOING TO RESTAURANTS OR ORDERING FOOD
AND SPENDING TIME WITH THEIR FAMILY")
print("maximum amount of orders are placed during this time of the
year")
print("number of orders per minute are displayed hereby.")
elif b=="f" or b=="F":
print("GROWTH IN MARKET SHARES")
fy=["fiscal 2018","fiscal 2019","fiscal 2020","fiscal 2021"]
i=[100,277,613,362]
zo=[100,404,841,711]
plt.plot(fy,i,"g",label="INDUSTRY",marker="*")
plt.plot(fy,zo,"r",label="ZOMATO",marker="*")
plt.xlabel("financial year")
plt.ylabel("Index")
plt.title("GROWTH IN MARKET SHARE")
plt.legend()
plt.show()
else:
print("THIS OPTION DOESN'T EXIST.")
print()
print("would you like to surf further?")
a=input("yes or no?")
if a=="yes" or a=="YES":
print("WHAT WOULD YOU LIKE TO SURF?")
print()
print("A-Usage of Zomato over other apps")
print("B-REVENUE V.S. LOSS")
print("C-Growth margin over 6 FINANCIAL YEARS")
print("D-Raise in USERS,RESTAURANTS,DELIVERY PARTNERS")
print("E-orders on ZOMATO and SWIGGY on NEW YEAR EVES.")
print("F-Growth in market shares")
print()
b=input("enter your choice of interest-")
if b=="A" or b=="a":
print(comparison)
apps=["ZOMATO","SWIGGY","UBER EATS","FOODPANDA","DOMINOS"]
FY2020=[12,10,4,2,2]
ex=[0.1,0,0,0,0]
plt.pie(FY2020,labels=apps,explode=ex,autopct="%2.2f%%")
plt.title(" 'Popularity of ZOMATO among other competitors(2020)'
")
plt.show()
elif b=="B" or b=="b":
print(lossrevenue)
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
plt.plot(years,revenue,marker="D",label="REVENUE")
plt.plot(years,loss,marker="D",label="LOSS")
plt.xlabel("FINANCIAL YEARS")
plt.ylabel("AMOUNT IN $MILLION")
plt.title("REVENUE V.S.LOSS")
plt.legend()
plt.show()
elif b=="C" or b=="c":
print(growth)
data2=[0.2,0.6,1.5,4.2,2.9]
years=[2016,2017,2018,2019,2020]
plt.bar(years,data2,color="black")
plt.xlabel("TOTAL GROWTH/DE-GROWTH")
plt.ylabel("FINANCIAL YEARS")
plt.title("GROWTH MARGIN(in $billions)")
plt.show()
print("DUE TO COVID CRISIS MASSIVE FALL WAS OBSERVED IN THE GRAPH
OF ZOMATO ")
elif b=="D" or b=="d":
print(Raise)
Y19=["3.6M","43K","49K"]
Y20=["11.2","119K","200K"]
P=["CUSTOMERS","RESTAURANTS","DELIVERY PARTNERS"]
x=np.arange(3)
plt.bar(x+0.00,Y19,color="green",label="financial year
2019",width=0.30)
plt.bar(x+0.40,Y20,color="yellow",label="financial year
2020",width=0.30)
plt.xticks(x,P)
plt.xlabel("(USERS,EMPLOYESS)")
plt.ylabel("COUNT(in M/K)")
plt.title("RAISE IN CLIENTS,PARTNERS AND DELIVERY PARTNERS")
plt.legend()
plt.show()
print("ZOMATO HAS OFFERED EMPLOYMENT TO MANY JOBLESS
ENTHUSIASTS")
elif b=="E" or b=="e":
print("orders per minute")
y=["2020","2021"]
s=[5500,9500]
z=[4250,7100]
plt.plot(y,s,label="swiggy",marker="+",linestyle="dashed")
plt.plot(y,z,"r",label="zomato",marker="+",linestyle="dashed")
plt.xlabel("year")
plt.ylabel("orders per min.")
plt.title("orders placed from ZOMATO or SWIGGY on NEW YEAR'S
EVE.")
plt.legend()
plt.show()
print("NEW YEARS'S EVE IS CONSIDERED TO BE THE BIGGEST FESTIVAL
CELEBRATED WORLD WIDE")
print("PEOPLE USUALLY PREFER GOING TO RESTAURANTS OR ORDERING FOOD
AND SPENDING TIME WITH THEIR FAMILY")
print("maximum amount of orders are placed during this time of the
year")
print("number of orders per minute are displayed hereby.")
elif b=="f" or b=="F":
print("GROWTH IN MARKET SHARES")
fy=["fiscal 2018","fiscal 2019","fiscal 2020","fiscal 2021"]
i=[100,277,613,362]
zo=[100,404,841,711]
plt.plot(fy,i,"g",label="INDUSTRY",marker="*")
plt.plot(fy,zo,"r",label="ZOMATO",marker="*")
plt.xlabel("financial year")
plt.ylabel("Index")
plt.title("GROWTH IN MARKET SHARE")
plt.legend()
plt.show()
else:
print("THIS OPTION DOESN'T EXIST.")
print()
print("would you like to surf further?")
a=input("yes or no?")
if a=="yes" or a=="YES":
print("WHAT WOULD YOU LIKE TO SURF?")
print()
print("A-Usage of Zomato over other apps")
print("B-REVENUE V.S. LOSS")
print("C-Growth margin over 6 FINANCIAL YEARS")
print("D-Raise in USERS,RESTAURANTS,DELIVERY PARTNERS")
print("E-orders on ZOMATO and SWIGGY on NEW YEAR EVES.")
print("F-Growth in market shares")
print()
b=input("enter your choice of interest-")
if b=="A" or b=="a":
print(comparison)
apps=["ZOMATO","SWIGGY","UBER EATS","FOODPANDA","DOMINOS"]
FY2020=[12,10,4,2,2]
ex=[0.1,0,0,0,0]
plt.pie(FY2020,labels=apps,explode=ex,autopct="%2.2f%%")
plt.title(" 'Popularity of ZOMATO among other competitors(2020)'
")
plt.show()
elif b=="B" or b=="b":
print(lossrevenue)
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
plt.plot(years,revenue,marker="D",label="REVENUE")
plt.plot(years,loss,marker="D",label="LOSS")
plt.xlabel("FINANCIAL YEARS")
plt.ylabel("AMOUNT IN $MILLION")
plt.title("REVENUE V.S.LOSS")
plt.legend()
plt.show()
elif b=="C" or b=="c":
print(growth)
data2=[0.2,0.6,1.5,4.2,2.9]
years=[2016,2017,2018,2019,2020]
plt.bar(years,data2,color="black")
plt.xlabel("TOTAL GROWTH/DE-GROWTH")
plt.ylabel("FINANCIAL YEARS")
plt.title("GROWTH MARGIN(in $billions)")
plt.show()
print("DUE TO COVID CRISIS MASSIVE FALL WAS OBSERVED IN THE GRAPH
OF ZOMATO ")
elif b=="D" or b=="d":
print(Raise)
Y19=["3.6M","43K","49K"]
Y20=["11.2","119K","200K"]
P=["CUSTOMERS","RESTAURANTS","DELIVERY PARTNERS"]
x=np.arange(3)
plt.bar(x+0.00,Y19,color="green",label="financial year
2019",width=0.30)
plt.bar(x+0.40,Y20,color="yellow",label="financial year
2020",width=0.30)
plt.xticks(x,P)
plt.xlabel("(USERS,EMPLOYESS)")
plt.ylabel("COUNT(in M/K)")
plt.title("RAISE IN CLIENTS,PARTNERS AND DELIVERY PARTNERS")
plt.legend()
plt.show()
print("ZOMATO HAS OFFERED EMPLOYMENT TO MANY JOBLESS
ENTHUSIASTS")
elif b=="E" or b=="e":
print("orders per minute")
y=["2020","2021"]
s=[5500,9500]
z=[4250,7100]
plt.plot(y,s,label="swiggy",marker="+",linestyle="dashed")
plt.plot(y,z,"r",label="zomato",marker="+",linestyle="dashed")
plt.xlabel("year")
plt.ylabel("orders per min.")
plt.title("orders placed from ZOMATO or SWIGGY on NEW YEAR'S
EVE.")
plt.legend()
plt.show()
print("NEW YEARS'S EVE IS CONSIDERED TO BE THE BIGGEST FESTIVAL
CELEBRATED WORLD WIDE")
print("PEOPLE USUALLY PREFER GOING TO RESTAURANTS OR ORDERING FOOD
AND SPENDING TIME WITH THEIR FAMILY")
print("maximum amount of orders are placed during this time of the
year")
print("number of orders per minute are displayed hereby.")
elif b=="f" or b=="F":
print("GROWTH IN MARKET SHARES")
fy=["fiscal 2018","fiscal 2019","fiscal 2020","fiscal 2021"]
i=[100,277,613,362]
zo=[100,404,841,711]
plt.plot(fy,i,"g",label="INDUSTRY",marker="*")
plt.plot(fy,zo,"r",label="ZOMATO",marker="*")
plt.xlabel("financial year")
plt.ylabel("Index")
plt.title("GROWTH IN MARKET SHARE")
plt.legend()
plt.show()
else:
print("THIS OPTION DOESN'T EXIST.")
print()
print("would you like to surf further?")
a=input("yes or no?")
if a=="yes" or a=="YES":
print("WHAT WOULD YOU LIKE TO SURF?")
print()
print("A-Usage of Zomato over other apps")
print("B-REVENUE V.S. LOSS")
print("C-Growth margin over 6 FINANCIAL YEARS")
print("D-Raise in USERS,RESTAURANTS,DELIVERY PARTNERS")
print("E-orders on ZOMATO and SWIGGY on NEW YEAR EVES.")
print("F-Growth in market shares")
print()
b=input("enter your choice of interest-")
if b=="A" or b=="a":
print(comparison)
apps=["ZOMATO","SWIGGY","UBER EATS","FOODPANDA","DOMINOS"]
FY2020=[12,10,4,2,2]
ex=[0.1,0,0,0,0]
plt.pie(FY2020,labels=apps,explode=ex,autopct="%2.2f%%")
plt.title(" 'Popularity of ZOMATO among other competitors(2020)'
")
plt.show()
elif b=="B" or b=="b":
print(lossrevenue)
years=["FY19","FY20","FY21"]
revenue=[192,394,452]
loss=[277,293,216]
plt.plot(years,revenue,marker="D",label="REVENUE")
plt.plot(years,loss,marker="D",label="LOSS")
plt.xlabel("FINANCIAL YEARS")
plt.ylabel("AMOUNT IN $MILLION")
plt.title("REVENUE V.S.LOSS")
plt.legend()
plt.show()
elif b=="C" or b=="c":
print(growth)
data2=[0.2,0.6,1.5,4.2,2.9]
years=[2016,2017,2018,2019,2020]
plt.bar(years,data2,color="black")
plt.xlabel("TOTAL GROWTH/DE-GROWTH")
plt.ylabel("FINANCIAL YEARS")
plt.title("GROWTH MARGIN(in $billions)")
plt.show()
print("DUE TO COVID CRISIS MASSIVE FALL WAS OBSERVED IN THE GRAPH
OF ZOMATO ")
elif b=="D" or b=="d":
print(Raise)
Y19=["3.6M","43K","49K"]
Y20=["11.2","119K","200K"]
P=["CUSTOMERS","RESTAURANTS","DELIVERY PARTNERS"]
x=np.arange(3)
plt.bar(x+0.00,Y19,color="green",label="financial year
2019",width=0.30)
plt.bar(x+0.40,Y20,color="yellow",label="financial year
2020",width=0.30)
plt.xticks(x,P)
plt.xlabel("(USERS,EMPLOYESS)")
plt.ylabel("COUNT(in M/K)")
plt.title("RAISE IN CLIENTS,PARTNERS AND DELIVERY PARTNERS")
plt.legend()
plt.show()
print("ZOMATO HAS OFFERED EMPLOYMENT TO MANY JOBLESS
ENTHUSIASTS")
elif b=="E" or b=="e":
print("orders per minute")
y=["2020","2021"]
s=[5500,9500]
z=[4250,7100]
plt.plot(y,s,label="swiggy",marker="+",linestyle="dashed")
plt.plot(y,z,"r",label="zomato",marker="+",linestyle="dashed")
plt.xlabel("year")
plt.ylabel("orders per min.")
plt.title("orders placed from ZOMATO or SWIGGY on NEW YEAR'S
EVE.")
plt.legend()
plt.show()
print("NEW YEARS'S EVE IS CONSIDERED TO BE THE BIGGEST FESTIVAL
CELEBRATED WORLD WIDE")
print("PEOPLE USUALLY PREFER GOING TO RESTAURANTS OR ORDERING FOOD
AND SPENDING TIME WITH THEIR FAMILY")
print("maximum amount of orders are placed during this time of the
year")
print("number of orders per minute are displayed hereby.")
elif b=="f" or b=="F":
print("GROWTH IN MARKET SHARES")
fy=["fiscal 2018","fiscal 2019","fiscal 2020","fiscal 2021"]
i=[100,277,613,362]
zo=[100,404,841,711]
plt.plot(fy,i,"g",label="INDUSTRY",marker="*")
plt.plot(fy,zo,"r",label="ZOMATO",marker="*")
plt.xlabel("financial year")
plt.ylabel("Index")
plt.title("GROWTH IN MARKET SHARE")
plt.legend()
plt.show()
else:
print("THIS OPTION DOESN'T EXIST.")
print()
print("OKAY!")
print("we hope we were usefull! HAVE A NICE DAY")
print("ADIOS")

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy