ip project file for class 12
ip project file for class 12
Teacher’s signature
ACKNOWLEDGEMENT
We would like to express our special
thanks of gratitude to our teacher
Mr.Viay Kumar Dayma as well as our
principal Mr. who gave us the golden
opportunity to do this wonderful project
on the topic ‘Analysis of Covid-19
impact on India using Data
Visualisation’ which also helped us in
doing a lot of research and we came to
know about so many new things.
Secondly, we would also like to thank
our parents and friends who helped us a
lot in finishing this project within the
time limit.
ANALYSIS OF
COVID-19
IMPACT ON
INDIA WITH
DATA
VISUALISATIO
N
Index
Sno Topic Pg
. No.
1. What is COVID-19?
2. COVID-19 in India
DATA FRAME
{C= CASES}
{R= Recovery}
{D=Death}
Program
import pandas as pd
import matplotlib.pyplot as plt
data={'STATES':['Maharashtra','Karnataka','Andhra
Pradesh','Tamil Nadu','Kerala'],
'CASES':[1913382,914488,880430,812142,732084],
'RECOVERIES':
[1806298,888917,869478,790965,664951],
"DEATHS":[49129,12044,7091,12048,2930]}
df=pd.DataFrame(data)
print(df)
plt.bar(df['STATES'],df['CASES'],label='CASES',color='gre
en')
plt.bar(df['STATES'],df['RECOVERIES'],label='RECOVERI
ES',color='orange')
plt.bar(df['STATES'],df['DEATHS'],label='DEATHS',color=
'blue')
plt.xlabel('STATES')
plt.ylabel('NUMBER')
plt.title('MOST AFFECTED STATES DUE TO COVID-19')
plt.legend()
plt.grid()
plt.show()
OUTPUT
Least affected states
from COVID-19 in India
Some of the least affected states in India were of
North eastern part like Mizoram, Sikkim,
Nagaland, Meghalaya and Arunachal Pradesh.
Below is the graph of COVID-19 statistics in
India at a point of time: -
Data Frame
Program
import pandas as pd
import matplotlib.pyplot as plt
data={'STATE':
['Mizoram','Sikkim','Nagaland','Meghalaya','Arunachal
Pradesh'],
'CASES': [4178,5684,11845,13396,16678],
'RECOVERIES': [4036,5142,11544,12940,16454],
"DEATH": [8,125,77,135,56]}
df=pd.DataFrame(data)
print(df)
plt.bar(df['STATE'],df['CASES'],label='CASES',color='red')
plt.bar(df['STATE'],df['RECOVERIES'],label='RECOVERIE
S',color='yellow')
plt.bar(df['STATE'],df['DEATH'],label='DEATH',color='bl
ue')
plt.legend()
plt.xlabel('STATES')
plt.ylabel('NUMBER')
plt.title('LEAST AFFECTED STATES DUE TO COVID-19')
plt.grid()
plt.show()
OUTPUT
DEATH IN EACH
AGE GROUP
Death caused in each age group at
a point if time is shown below:
Data frame
program
PROGRAM
import matplotlib.pyplot as plt
import pandas as pd
data = {'Age': ['0-10','11-20','21-30','31-40','41-
50','51-60','61-70','71-80','81-90','90+'],
'Male Deaths':
[180,202,926,2484,5230,9683,11142,6788,2141
,197],
'Female Deaths':
[109,195,529,952,2308,4548,4947,2766,857,10
4]}
df=pd.DataFrame(data)
print(df)
plt.bar(df['Age'],df['Male Deaths'],label='MALE')
plt.bar(df['Age'],df['Female Deaths'],
label='FEMALE')
plt.legend()
plt.xlabel('AGE')
plt.ylabel('NUMBER')
plt.title('NO. OF DEATHS UPTO 2nd SEP.2020')
plt.grid()
plt.show()
OUTPUT
COVID-19 TESTS
CONDUCTED BY
DIFFERENT COUNTRIES
IN THE WORLD
Number of COVID-19 test conducted by
different countries all around the world
until 01 January, 2021. According to
news, India has done 3rd largest testing
in the world.
Data frame
Program
import matplotlib.pyplot as plt
import pandas as pd
data={"COUNTRY":
['USA','China','India','Russia','UK','Germany','
France','Brazil','Spain','Italy'],
"NO. OF TESTS":
[224938642,160000000,156646280,838671
86,48488168,30494036,29323706,2570000
0,24918644,24482190]}
df=pd.DataFrame(data)
print(df)
plt.barh(df['COUNTRY'],df['NO.OF
TESTS'],color='red')
plt.title('NUMBER OF CORONAVIRUS TESTS
PERFORMED IN THE MOST IMPACTED
COUNTRIES WORLDWIDE AS OF DECEMBER
16,2020')
plt.xlabel('NUMBER OF TESTS')
plt.ylabel('COUNTRIES')
plt.grid()
plt.show()
OUTPUT
CONCLUSION
By visualizing data in form of bar and
line graphs we are able to easily
analyse that the states worsely
affected due to Covid-19 are states
with dense population and least
affected are not so densely populated.
The worst affected age group is 61 to
70 as there are more deaths caused
in this group due to Covid-19. We can
also clearly see that in every age
group there is more deathscaused in
males than in females.
We are also able to see that India
stands at third position in global
testing of coronavirus with more
than 15.6 crores sample already
tested.
REFERENCE
https://www.who.int
https://en.m.wikipedia.org
www.google.com
https://no2colaba.kvs.ac.in
https://www.statista.com