MAHESWARI PUBLIC SCHOOL
KALWAR ROAD
INFORMATIC PRACTICES
CLASS: 1271H
PROJECT FILE SESSION 2023-24
NAME: Anushka Sharma
CLASS: 1241
ROLLNO: 12106
TABLE OF CONTENTS
CERTIFICATE
VY
ACKNOWLEDGMENT
V
INTRODUCTION TO PYTHON
V
OVJECTIVE
VY
What is Covid-197?
VV
Covid-19 in India
Worst affected states form Covid-19 in India
VY
Worst affected states form Covid-19 in India
VV
Deaths in each group due to covid-19
Deaths in each group in male and female due
YV
to Covid-19
> Covid-19 test conducted by different Countries
in the World
» CONCLUSION
» REFERENCE
CERTIFICATE
This is to certify that ANUSHKA SHARMA, student of
class 12thA1 has successfully completed the research on
the project “Analysis of Covid-19 impact on India using
Data Visualization” under the guidance of MRS MANISHA
NARUKA during the year 2023-24. The certified student
has been dedicated throughout her research and
completed her work before the given deadline without
missing any important details from the project. It is also
certified that this project is the individual work of the
student and can be submitted for evaluation.
Teacher’s Signature.
Principal Signature.
External Examiner:
ACKNOWLEDGMENT
I would like to express my gratitude towards my
Information Practices teacher MRS MANISHA
NARUKA for her valuable guidance and nonstop
support during this project. As well as, [ am grateful
to our principal
SMT. RITA P. TANEJA for providing me with the
beautiful opportunity to work on this Project.
[ would also like to thank my parents and friends for
encouraging me during the course of this project.
Finally, I would like to thank the CBSE board for
giving me this great opportunity to do this project
INTRODUCTION TO PYTHON
What is Python?
Python is a popular programming language. It was
created by Guido van Rossum, and released in 1991.
It is used for:
. web development (server-side),
. software development,
. mathematics,
. system scripting.
What can Python do?
. Python can be used on a server to create web
applications.
. Python can be used alongside software to create
workflows.
. Python can connect to database systems. It can
also read and modify files.
. Python can be used to handle big data and
perform complex mathematics.
. Python can be used for rapid prototyping, or for
production-ready software development.
Why Python?
. Python works on different platforms (Windows,
Mac, Linux, Raspberry Pi, etc).
. Python has a simple syntax similar to the English
language.
. Python has syntax that allows developers to write
programs with fewer lines than some other
programming languages.
. Python runs on an interpreter system, meaning
that code can be executed as soon as it is written.
This means that prototyping can be very quick.
. Python can be treated in a procedural way, an
object-oriented way or a functional way.
OBJECTIVE
The world was grappling with an invisible, deadly
enemy CORONA VIRUS.
“A picture is worth a thousand words“
As the quote speaks, Data visualization helps to derive
information insights from data sources in a better
way.
So through this, I want to display how many people
were hospitalized, the number of deaths happened,
the number of people who recovered from the
disease
ANALYSIS OF
COVID-19
IMPACT ON
INDIA
USING DATA
VISUALISATION
WHAT IS CovID-197
Corona virus disease 2019 (COVID-19) was a
contagious disease caused by severe acute respiratory
syndrome corona virus 2 (SARS-CoV-2). The first case was
identified in Wuhan, China, in December 2019. It has since
spread worldwide, leading to an ongoing pandemic.
Most people infected with the COVID-19 virus experienced mild
to moderate respiratory illness and recovered without requiring
special treatment. Older people and those with underlying
medical problems like cardiovascular disease, diabetes, chronic
respiratory disease, and cancer were more likely to have
developed serious illness.
A new strain of corona virus was discovered in Britain. It was said
to mutate faster than the older variant.
CoVvID-19 IN INDIA
The first case of COVID-19 in India, which originated from
China, was reported on 30 January 2020. India had the largest
number of confirmed cases in Asia and had the second-highest
number of confirmed cases in the world after the United States.
On 24 March, the Prime Minister ordered a nationwide
lockdown for 21 days, affecting the entire 1.3 billion
population of India. On 14 April, India extended the
nationwide lockdown till 3 May which was followed by two-
week extensions.
From 1 June, the government started "unlocking" the country
(barring "containment zones") in three unlock phases
WORST AFFECTED STATES
FROM COVID-19 IN INDIA
Five worst affected states in India were Maharashtra, Karnataka,
Andhra Pradesh, Tamil Nadu and Kerala. Givenbelow is the bar
graph as on 26™ December, 2020.
CSV FILE
X Ee NES
A B C
EC r d
2 1913382 1806298 49129
3 914488 888917 12044
4 880430 869478 7091
5 812142 790965 12048
6 732084 664951 2930
7
g
9
OO
md
ad | al |
N=
PROGRAM
import matplotlib.pyplot as plt
HON =
import numpy as np
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/Covidip.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2, [Maharashtra
'Karnataka',AP',TN','Kerala'])
plt.bar(x,a['c',width=3,color="blue’,
label='Cases')
plt.bar(x+3,a['r'],width=3,color='green,
label="Recover")
plt.bar(x+6,a['d"],width=3,color="red,
label='Death’)
plt.title('Most affected states due to
covid19)
plt.legend()
plt.xlabel('States')
plt.ylabel('Number')
plt.show(()
OUTPUT
Most affected states due to covidl9
2000000
Emm Cases
EE Recover
EEE Death
1750000 -
1500000 +
1250000 +
Number
1000000 -
750000
500000
250000
Maharashtra Karnataka AP TN Kerala
States
A € > +Q/=
LEAST AFFECTED STATES FROM
CoVvID-19 IN INDIA
Five least affected states in India are Mizoram, Sikkim, Nagaland,
Meghalaya and Arunachal Pradesh. Given belowis the bar graph
as on 26™ December, 2020.
CSV FILE
Ee x ~~ +S :
A B C D
Efe r d
2 4178 4036 8
3 5684 5142 125
4 11845 11544 77
5 13396 12940 135
16678 16454 56
PROGRAM
import matplotlib.pyplot as plt
HOON =
import numpy as np
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip2.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2, Mizoram, ‘Sikkim,
‘Nagaland’, Meghalaya’, Arunachal
Pradesh)
plt.bar(x,a['c'l,width=3,color="blue,
label="Cases")
plt.bar(x+3,a['r'],width=3,color='green’,
label="Recover")
plt.bar(x+6,a['d"],width=3,color="red',
label='"Death)
plt.title('Least affected states due to
covid19')
plt.legend()
plt.xlabel('States’)
plt.ylabel('Number’)
plt.show(()
OUTPUT
Least affected states due to covidl9
EEE Cases
EEE Recover
EEE Death
16000 +
14000 +
12000 A
10000 +1
Number
8000
6000
4000 +
2000 A
Mizoram Sikkim Nagaland Meghalaya Arunachal Pradesh
States
A €> $Q|=
DEATHS IN EACH AGE GROUP
DUE TO CovID-19
Deaths caused in each age groups is shown below
through a line graph as at 2" September, 2020.
CSV FILE
Jil
bo
dh
)
)
=
WN
dl
on
13.4
25.13
NN
28.6
00
OO
wd | «a
=O
|
WINN
wd | wd
PROGRAM
import matplotlib.pyplot as plt
WN =
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip3.csv')
plt.plot(a['x],al'y'],marker="*',
REN
markeredgecolor="r")
plt.title('% of death in each age group)
OO
plt.xlabel('Ages’)
plt.ylabel('percent’)
~N
plt.show()
0
OUTPUT
% of death in each age group
25 +
20 A
15
percent
10 +
0-10 11-20 21-30 31-40 41-50 51-60 61-70 71-80 81-90 >90
Ages
# €> $Q=
DEATHS IN EACH AGE GROUP IN MALE
AND FEMALE DUE TO CovID-19
Deaths caused in each age groups in male and female isshown
below through a bar graph as at 24 September, 2020.
CSV FILE
v = ~~ A 4+ BH
A B Cc
1 f m
2 109 180
3 195 202
4 529 926
5 952 2484
6 2308 5230
7 4548 9683
8 4947 11142
9 2766 6788
10 857 2141
104 197
—_
—
N
wll
PROGRAM
IB
import matplotlib.pyplot as plt
import numpy as np
BR WN
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip4.csv])
x=np.linspace(1,81,10)
plt.xticks(x+3/2, [0-10',11-20', '21-30','31
40',41-50', '51-60',61-70',71-80',81-90/,
'>90")
plt.bar(x,a['f],width=3,color='g,
label="Female")
plt.bar(x+3,a['m’,width=3,color="b',
label="Male")
plt.legend()
plt.xlabel('Age’)
plt.ylabel('Number')
plt.title('No. of Deaths up to 2nd Sep
2020")
plt.show()
OUTPUT
No. of Deaths up to 2nd Sep 2020
EEN Female
HEE Male
10000 A
8000 1
£T 6000 +
=
=
=
4000 +
2000 1
0 -
0-10 11-20 21-30 31 40 41-50 51-60 61-70 71-80 81-90 =>90
Age
a €> PQ = \B
COVID-19 TEST CONDUCTED BY
DIFFERENT COUNTRIES IN THE WORLD
Number of Covid-19 test conducted by different countries
all over the world upto 16™ December, 2020.
India has done 3™ largest testing in the world.
CSV FILE
“ CN ~ +S
0
224938642 USA
ON
160000000 China
On|
S|
156646280 India
83867186 Russia
48488168 UK
(IN|
30494036 Germany
29323706 France
OO
25700000 Brazil
10 24918644 Spain
11 24482190 Italy
PROGRAM
import matplotlib.pyplot as plt
To
import pandas as pd
a=pd.read_csv('/storage/emulated/0/
Download/covidip5.csv')
plt.barh(a['n,a['c],color="r")
plt.title('Number of coronavirus tests
performed in the most \n impacted
countries worldwide as of December 16,
2020’)
plt.xlabel('No. of test’)
Nie)
plt.ylabel('Country')
plt.show()
oe
OUTPUT
Number of coronavirus tests performed in the most
impacted countries worldwide as of December 16,2020
italy
Spain
Brazil
France
Germany
Lounuy
UK
Russia
India
China
USA
0.0 0.5 1.0 1.5 2.0
1e8
No. of test
#l€> $Q=
CONCLUSION
By visualizing data in form of bar and line graphs we
are able to easily analyze that the states worsely affected
due to Covid-19 were states with dense population and
least affected were not so densely populated.
The worst affected age group are 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
were more deaths caused in males than
in females.
We are also able to see that India standed at third position in
global testing of corona virus
REFERENCE
e https.//indianexpress.com
e hitps.// www.who.int
e hitps.//en.m.wikipedia.org
e hittps.//www statista.com
e hittps.//m.hindustantimes.com
e Sumita arora — information practices book
e NCERT class 12 —information practices book