Informatics Practices Project 12 New

You might also like

You are on page 1of 31

INFORMATICS PRACTICES

PROJECT

DEVELOPED BY:
TEAM MEMBERS:
1.KASHISH SINGH
2.SURYA UPPAL
3.SAMPANN KHANNA

JASPAL KAUR PUBLIC SCHOOL


CLASS: 12D
ROLLNO:
CERTIFACTE

This is to certify that , student of class 12th 'D' has successfully


completed the research on the project “Analysis of Covid-19
impact on India using Data Visualisation” under the guidance of
Mrs.Ritu Gulati during the year 2023-24. The work done by
them is original.

Teacher’s signature
ACKNOWLEGDEMENT

I would like to express my special thanks of gratitude To my teacher


Miss Ritu Gulati as well as our Principal Mrs Asha Saran Srivastava who
gave me the golden opportunity to do this wonderful project on the topic
'Analysis of Covid-19 impact on India using Data Visualisation' which
also helped me in doing a lot of research and I came to know about so
many new things.
Secondly I would also like to thank my parents and friends who helped
me a lot in finishing this project within the time limit. I am making this
project not only for marks but to also increase my knowledge
Covid-19
impact on
India
using Data
Visualisation
INDEX

Sno Topic Page No


1 Certificate
2 Acknowledgement
3 What is Covid-19?
4 Covid-19 in India
5 Worst affected states from Covid-19 in
India
6 Least affected states from Covid-19 in
India
7 Deaths in each age group due to Covid
19
8 Deaths in each age group in male and
female due to Covid-19
9 Covid-19 test conducted by different
countries in the world
10 Conclusion
11 Hardware and Software Requirement
12 Bibliography
What is Covid-19?

Coronavirus disease 2019 (COVID-19) is a


contagious disease caused by severe acute respiratory
syndrome coronavirus 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 will
experience mild to moderate respiratory illness and recover
without requiring special treatment. Older people, and those
with underlying medical problems like cardiovascular
disease, diabetes, chronic respiratory disease, and cancer
are more likely to develop serious illness.
A new strain of coronavirus is discovered in Britain. It is said
to mutate faster than the older variant
Covid-19 in India

The first case of COVID-19 in India, which originated from China, was
reported on 30 January 2020. India currently has the largest number of
confirmed cases in Asia and has 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
twoweek extensions. From 1 June, the government started "unlocking"
the country (barring "containment zones") in three unlock phases.
MENU CODE
import matplotlib.pyplot as plt
import os

def display_graphs(image_paths):
num_images = len(image_paths)

fig, axes = plt.subplots(1, num_images, figsize=(15, 5))

for i, path in enumerate(image_paths):


img = plt.imread(path)
axes.imshow(img)
axes.axis('off')

plt.tight_layout()
plt.show()

def main():
while True:
print("Menu:")
print("1. Worst affected states from Covid-19 in
India")
print("2. Least affected states from Covid-19 in
India")
print("3. Deaths in each age group due to Covid-19")
print("4. Deaths in each age group in male and female
due to Covid-19")
print("5. Covid-19 test conducted by different
Countries in the World")
print("0. Exit")

choice = input("Enter your choice: ")


base_path = "C:\\Users\\User\\Documents\\"

if choice == '1':
display_graphs([os.path.join(base_path,
'bar1.jpg')])
elif choice == '2':
display_graphs([os.path.join(base_path,
'bar2.jpg')])
elif choice == '3':
display_graphs([os.path.join(base_path,
'bar3.jpg')])
elif choice == '4':
display_graphs([os.path.join(base_path,
'bar4.jpg')])
elif choice == '5':
display_graphs([os.path.join(base_path,
'bar5.jpg')])
elif choice == '0':
break
else:
print("Invalid choice. Please select a valid
option.")

if __name__ == "__main__":
main()

OPTION 1:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 1

OUTPUT:
OPTION 2:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 2

OUTPUT:
OPTION 3:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 3

OUTPUT:
OPTION 4:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 4

OUTPUT:
OPTION 5:
Menu:
1. Worst affected states from Covid-19 in India
2. Least affected states from Covid-19 in India
3. Deaths in each age group due to Covid-19
4. Deaths in each age group in male and female due to
Covid-19
5. Covid-19 test conducted by different Countries in
the World
0. Exit
Enter your choice: 5

OUTPUT:
Worst affected states from
Covid-19 in India

Five worst affected states in India are Maharashtra, Karnataka, Andhra


Pradesh, Tamil Nadu and Kerala. Given below is the bar graph as on
26th December, 2020.

CSV
PROGRAM 1

import matplotlib.pyplot as plt


import numpy as np
import pandas as pd
a = pd.read_csv('C:/Users/User/Downloads/covidip.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2,
['maharashtra','karnatka','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
Least affected states from
Covid-19 in India

Five worst affected states in India are Mizoram, Sikkim, Nagaland,


Meghalaya and Arunachal Pradesh. Given below is the bar graph as on
26th December, 2020.

CSV
PROGRAM 2

import matplotlib.pyplot as plt


import numpy as np
import pandas as pd
a=pd.read_csv(r'C:\Users\User\Downloads\covidip2.csv')
x=np.linspace(1,61,5)
plt.xticks(x+6/2, ['Mizoram', 'Sikkim', 'Nagaland',
'Meghalaya', 'Arunachal Pradesh'])
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('Least affected states due to covid19')
plt.legend()
plt.xlabel('States')
plt.ylabel('Number')
plt.show()
OUTPUT
Deaths in each age group
due to Covid-19

Deaths caused in each age groups is shown below through a line graph
as at 2nd September, 2020.

CSV
PROGRAM 3

import matplotlib.pyplot as plt


import pandas as pd
import pandas as pd
a = pd.read_csv(r"C:\Users\hp\Downloads\Covids.csv")
plt.plot(a['x'],a['y'], marker='*',
markeredgecolor='r')
plt.title('% of death in each age group')
plt.xlabel('Ages')
plt.ylabel('percent')
plt.show()
OUTPUT
Deaths in each age group in male
and female due to Covid-19
Deaths caused in each age groups in male and female is shown below
through a bar graph as at 2nd September, 2020.

CSV
PROGRAM 4

import matplotlib.pyplot as plt


import numpy as np
import pandas as pd
import pandas as pd
a = pd.read_csv(r"C:\Users\hp\Downloads\
Coviddeath2.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('Number of deaths upto 2nd Sep 2020')
plt.show()
OUTPUT
Covid-19 test conducted by
different Countries in the World

Number of Covid-19 test conducted by different countries all over the


world upto 16th December, 2020 India has done 3rd largest testing in
the world

CSV
PROGRAM 5

import matplotlib.pyplot as plt


import pandas as pd
a = pd.read_csv(r"C:\Users\hp\Downloads\Covidtest.csv")
plt.barh(a['n'],a['c'],color='r')
plt.title('Number of coronavirus test performed in the most
impacted countries as of December 16 2020')
plt.xlabel('Age')
plt.ylabel('Number')
plt.title('Number of deaths upto 2nd Sep 2020')
plt.show()
OUTPUT
Conclusion

By visualising 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 deaths caused 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.


BIBLIOGRAPHY

www.google.com/Python project
www.wikipedia.com/Python
https://indianexpress.com/
•https://www.statista.com

You might also like