14LG tzBxS6oOsaad9J6gb1GQn2CDEcGL
14LG tzBxS6oOsaad9J6gb1GQn2CDEcGL
14LG tzBxS6oOsaad9J6gb1GQn2CDEcGL
importinhg libraries
Andhra
0 1 12 0 1 0
Pradesh
1 2 Chhattisgarh 6 0 0 0
2 3 Delhi 38 1 6 1
3 4 Gujarat 43 0 0 3
4 5 Haryana 16 14 11 0
Himachal
5 6 4 0 0 1
Pradesh
6 7 Karnataka 20 0 3 2
7 8 Kerala 131 7 11 0
Madhya
1 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Madhya
8 9 23 0 0 1
Pradesh
9 10 Maharashtra 144 3 15 4
10 11 Odisha 3 0 0 0
11 12 Puducherry 1 0 0 0
12 13 Punjab 29 0 0 1
13 14 Rajasthan 41 2 3 0
14 15 Tamil Nadu 32 3 1 1
15 16 Telengana 34 11 1 0
16 17 Chandigarh 7 0 0 0
Jammu and
17 18 18 0 1 1
Kashmir
18 19 Ladakh 13 0 0 0
19 20 Uttar Pradesh 42 1 11 0
20 21 Uttarakhand 4 0 0 0
21 22 West Bengal 11 0 0 1
22 23 Bihar 7 0 0 1
23 24 Mizoram 1 0 0 0
Andhra
0 12 0 1 0
Pradesh
1 Chhattisgarh 6 0 0 0
2 Delhi 38 1 6 1
3 Gujarat 43 0 0 3
4 Haryana 16 14 11 0
Himachal
5 4 0 0 1
Pradesh
6 Karnataka 20 0 3 2
7 Kerala 131 7 11 0
Madhya
8 23 0 0 1
Pradesh
2 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
9 Maharashtra 144 3 15 4
10 Odisha 3 0 0 0
11 Puducherry 1 0 0 0
12 Punjab 29 0 0 1
13 Rajasthan 41 2 3 0
14 Tamil Nadu 32 3 1 1
15 Telengana 34 11 1 0
16 Chandigarh 7 0 0 0
Jammu and
17 18 0 1 1
Kashmir
18 Ladakh 13 0 0 0
19 Uttar Pradesh 42 1 11 0
20 Uttarakhand 4 0 0 0
21 West Bengal 11 0 0 1
22 Bihar 7 0 0 1
23 Mizoram 1 0 0 0
Total
Total
Confirmed
Name of Confirmed Total
cases ( Cured Death
State / UT cases (Indian Cases
Foreign
National)
National )
Andhra
0 12 0 1 0 12
Pradesh
1 Chhattisgarh 6 0 0 0 6
2 Delhi 38 1 6 1 39
3 Gujarat 43 0 0 3 43
4 Haryana 16 14 11 0 30
Himachal
5 4 0 0 1 4
Pradesh
6 Karnataka 20 0 3 2 20
Madhya
8 23 0 0 1 23
Pradesh
3 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
10 Odisha 3 0 0 0 3
11 Puducherry 1 0 0 0 1
12 Punjab 29 0 0 1 29
13 Rajasthan 41 2 3 0 43
14 Tamil Nadu 32 3 1 1 35
15 Telengana 34 11 1 0 45
16 Chandigarh 7 0 0 0 7
Jammu and
17 18 0 1 1 18
Kashmir
18 Ladakh 13 0 0 0 13
19 Uttar Pradesh 42 1 11 0 43
20 Uttarakhand 4 0 0 0 4
21 West Bengal 11 0 0 1 11
22 Bihar 7 0 0 1 7
Total Total
Confirmed Confirmed
Name of Total Active
cases cases ( Cured Death
State / UT Cases Cases
(Indian Foreign
National) National )
Andhra
0 12 0 1 0 12 11
Pradesh
1 Chhattisgarh 6 0 0 0 6 6
2 Delhi 38 1 6 1 39 32
3 Gujarat 43 0 0 3 43 40
4 Haryana 16 14 11 0 30 19
Himachal
5 4 0 0 1 4 3
Pradesh
6 Karnataka 20 0 3 2 20 15
4 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Madhya
8 23 0 0 1 23 22
Pradesh
10 Odisha 3 0 0 0 3 3
11 Puducherry 1 0 0 0 1 1
12 Punjab 29 0 0 1 29 28
13 Rajasthan 41 2 3 0 43 40
14 Tamil Nadu 32 3 1 1 35 33
15 Telengana 34 11 1 0 45 44
16 Chandigarh 7 0 0 0 7 7
Jammu and
17 18 0 1 1 18 16
Kashmir
18 Ladakh 13 0 0 0 13 13
Uttar
19 42 1 11 0 43 32
Pradesh
20 Uttarakhand 4 0 0 0 4 4
21 West Bengal 11 0 0 1 11 10
22 Bihar 7 0 0 1 7 6
Total Total
Confirmed Confirmed
Name of Total Active
cases cases ( Cured Death
State / UT Cases Cases
(Indian Foreign
National) National )
Andhra
0 12 0 1 0 12 11
Pradesh
1 Chhattisgarh 6 0 0 0 6 6
2 Delhi 38 1 6 1 39 32
3 Gujarat 43 0 0 3 43 40
4 Haryana 16 14 11 0 30 19
Himachal
5 4 0 0 1 4 3
Pradesh
6 Karnataka 20 0 3 2 20 15
Madhya
8 23 0 0 1 23 22
5 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
8 23 0 0 1 23 22
Pradesh
10 Odisha 3 0 0 0 3 3
11 Puducherry 1 0 0 0 1 1
12 Punjab 29 0 0 1 29 28
13 Rajasthan 41 2 3 0 43 40
14 Tamil Nadu 32 3 1 1 35 33
15 Telengana 34 11 1 0 45 44
16 Chandigarh 7 0 0 0 7 7
Jammu and
17 18 0 1 1 18 16
Kashmir
18 Ladakh 13 0 0 0 13 13
19 Uttar Pradesh 42 1 11 0 43 32
20 Uttarakhand 4 0 0 0 4 4
21 West Bengal 11 0 0 1 11 10
22 Bihar 7 0 0 1 7 6
23 Mizoram 1 0 0 0 1 1
Total Cases
Name of State / UT
Maharashtra 147
Kerala 138
Telengana 45
Uttar Pradesh 43
Gujarat 43
Rajasthan 43
Delhi 39
Tamil Nadu 35
Haryana 30
Punjab 29
Madhya Pradesh 23
Karnataka 20
6 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Ladakh 13
Andhra Pradesh 12
West Bengal 11
Bihar 7
Chandigarh 7
Goa 6
Chhattisgarh 6
Himachal Pradesh 4
Uttarakhand 4
Odisha 3
Manipur 1
Mizoram 1
Puducherry 1
Total_Active_Cases.style.background_gradient(cmap="Reds")
Total Cases
Name of State / UT
Maharashtra 147
Kerala 138
Telengana 45
Uttar Pradesh 43
Gujarat 43
Rajasthan 43
Delhi 39
Tamil Nadu 35
Haryana 30
Punjab 29
Madhya Pradesh 23
Karnataka 20
Ladakh 13
Andhra Pradesh 12
7 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Andhra Pradesh 12
West Bengal 11
Bihar 7
Chandigarh 7
Goa 6
Chhattisgarh 6
Himachal Pradesh 4
Uttarakhand 4
Odisha 3
Manipur 1
Mizoram 1
Puducherry 1
# graphical visualization
# representing in bar
df.plot(kind='bar',x='Name of State / UT',y='Total Cases')
plt.show()
8 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
9 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
10 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Total
Total
Confirmed
Confirmed
Name of cases ( Total
Latitude Longitude cases Cured Death
11 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Andhra
0 14.750429 78.570026 12 0 1 0
Pradesh
Uttar
10 27.599981 78.050006 42 1 11 0
map=folium.Map(location=[20,70],zoom_start=4,tiles='Stamenterrain')
map
Make this Notebook Trusted to load map: File -> Trust Notebook
+
−
Leaflet (https://leafletjs.com) | Map tiles by Stamen Design (http://stamen.com), under CC BY 3.0 (http://creativecommons.org/licenses/
by/3.0). Data by © OpenStreetMap (http://openstreetmap.org), under CC BY SA (http://creativecommons.org/licenses/by-sa/3.0).
12 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
dbd_india=pd.read_excel('per_day_cases.xlsx', parse_dates=True,sheet_name=
dbd_italy = pd.read_excel('per_day_cases.xlsx',parse_dates=True,sheet_name=
dbd_korea = pd.read_excel('per_day_cases.xlsx',parse_dates=True,sheet_name=
dbd_wuhan = pd.read_excel('per_day_cases.xlsx',parse_dates=True,sheet_name=
dbd_india
0 2020-01-30 1 1 NaN
1 2020-01-31 1 0 NaN
2 2020-02-01 1 0 NaN
3 2020-02-02 2 1 NaN
4 2020-02-03 3 1 NaN
5 2020-02-04 3 0 NaN
6 2020-02-05 3 0 NaN
7 2020-02-06 3 0 NaN
8 2020-02-07 3 0 NaN
9 2020-02-08 3 0 NaN
10 2020-02-09 3 0 NaN
11 2020-02-10 3 0 NaN
12 2020-02-11 3 0 NaN
13 2020-02-12 3 0 NaN
14 2020-02-13 3 0 NaN
15 2020-02-14 3 0 NaN
16 2020-02-15 3 0 NaN
17 2020-02-16 3 0 NaN
18 2020-02-17 3 0 NaN
19 2020-02-18 3 0 NaN
13 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
20 2020-02-19 3 0 NaN
21 2020-02-20 3 0 NaN
22 2020-02-21 3 0 NaN
23 2020-02-22 3 0 NaN
24 2020-02-23 3 0 NaN
25 2020-02-24 3 0 NaN
26 2020-02-25 3 0 NaN
27 2020-02-26 3 0 NaN
28 2020-02-27 3 0 NaN
29 2020-02-28 3 0 NaN
30 2020-02-29 3 0 NaN
31 2020-03-01 3 0 NaN
32 2020-03-02 6 3 NaN
33 2020-03-03 9 3 NaN
34 2020-03-04 28 19 NaN
35 2020-03-05 30 2 NaN
36 2020-03-06 31 1 NaN
37 2020-03-07 34 3 NaN
38 2020-03-08 39 5 NaN
39 2020-03-09 43 4 NaN
40 2020-03-10 56 13 NaN
41 2020-03-11 62 6 NaN
42 2020-03-12 73 11 NaN
43 2020-03-13 82 9 NaN
14 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
# plotly expression
fig = px.bar(x=dbd_india['Date'],y=dbd_india["Total Cases"],title =
fig.show()
250
200
15 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
150
y 100
50
0
Feb 2 Feb 9 Feb 16 Feb 23 Mar 1
2020
40k
30k
y
20k
10k
0
Feb 2 Feb 9 Feb 16 Feb 23 Mar 1
2020
16 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
9000
8000
7000
6000
5000
y
4000
3000
2000
1000
0
Jan 26 Feb 2 Feb 9 Feb 16 Feb 23 Mar 1
2020
70k
60k
50k
40k
y
30k
20k
10k
17 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
0
Jan 5 Jan 19 Feb 2 Feb 16
2020
fig=plt.figure(figsize=(10,5),dpi=200)
axes=fig.add_axes([0.1,0.1,0.8,0.8])
axes.plot(dbd_india["Date"],dbd_india["Total Cases"],color='blue',marker=
axes.set_xlabel("Date")
axes.set_ylabel("Total Cases")
axes.set_title("Confirmed cases in India")
plt.show()
#plotly Express
250
200
Total Cases
150
18 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
Total Cases
100
50
Date
fig=go.Figure()
fig.add_trace(go.Scatter(x=dbd_india['Date'],y=dbd_india['Total Cases'
250
200
150
100
50
19 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
fig=make_subplots(
rows=2,cols=2,
specs=[[{"secondary_y":True},{"secondary_y":True}],[{"secondary_y"
subplot_titles=("S.Korea","Italy","India","Wuhan"))
fig.add_trace(go.Bar(x=dbd_korea['Date'],y=dbd_korea['Total Cases'],
marker=dict(color=dbd_korea['Total Cases'],coloraxis=
fig.add_trace(go.Bar(x=dbd_italy['Date'],y=dbd_italy['Total Cases'],
marker=dict(color=dbd_italy['Total Cases'],coloraxis=
fig.add_trace(go.Bar(x=dbd_india['Date'],y=dbd_india['Total Cases'],
marker=dict(color=dbd_india['Total Cases'],coloraxis=
fig.add_trace(go.Bar(x=dbd_wuhan['Date'],y=dbd_wuhan['Total Cases'],
marker=dict(color=dbd_wuhan['Total Cases'],coloraxis=
fig.update_layout(coloraxis=dict(colorscale='Bluered_r'),showlegend=False
fig.update_layout(plot_bgcolor='rgb(230,230,230)')
S.Korea
8000
40k
6000
30k
4000 20k
2000 10k
0 0
Feb 2 Feb 16 Mar 1 Mar 15 Feb 2 Feb 16
2020 2020
India
60k
200
40k
100
20k
20 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
0 0
Feb 2 Feb 16 Mar 1 Mar 15 Feb 2020
2020
fig=make_subplots(
rows=2,cols=2,
specs=[[{"secondary_y":True},{"secondary_y":True}],[{"secondary_y"
subplot_titles=("S.Korea","Italy","India","Wuhan"))
fig.add_trace(go.Scatter(x=dbd_korea['Date'],y=dbd_korea['Total Cases'
marker=dict(color=dbd_korea['Total Cases'],coloraxis=
fig.add_trace(go.Scatter(x=dbd_italy['Date'],y=dbd_italy['Total Cases'
marker=dict(color=dbd_italy['Total Cases'],coloraxis=
fig.add_trace(go.Scatter(x=dbd_india['Date'],y=dbd_india['Total Cases'
marker=dict(color=dbd_india['Total Cases'],coloraxis=
fig.add_trace(go.Scatter(x=dbd_wuhan['Date'],y=dbd_wuhan['Total Cases'
marker=dict(color=dbd_wuhan['Total Cases'],coloraxis=
fig.update_layout(coloraxis=dict(colorscale='Bluered_r'),showlegend=False
fig.update_layout(plot_bgcolor='rgb(230,230,230)')
S.Korea
8000
40k
6000
4000 20k
2000
0 0
Feb 2 Feb 16 Mar 1 Mar 15 Feb 2 Feb 16
2020 2020
India
60k
200
40k
100
20k
21 of 22 06/02/24, 10:09
AIDSEX2.ipynb - Colaboratory https://colab.research.google.com/drive/14LG_tzBxS...
0 0
Feb 2 Feb 16 Mar 1 Mar 15 Feb 2020
2020
22 of 22 06/02/24, 10:09