It's boring to stay at home because of the recent coronavirus epidemic, and I want to get out early, so I'm going to use it in the future. I tried to analyze from the same type of SARS virus in order to know the trend of Navirus.
I started searching for data because I didn't have any data to analyze it. ** No good CSV data exists ** So, first of all, to create from the CSV file, search for SARS data from WHO However, I created it.
SARS.ipynd
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
SARS.ipynd
df1 = pd.read_csv('analytics_SARS].csv')
df1.head()
SARS.ipynd
x_num = df1['day']
y_num = df1['total']
plt.plot(x_num,y_num)#Show graph
Up to about 60 days, there was an upward trend, from which it can be seen that the number of infected people has decreased significantly.
### 4.1 Let's see the increase and decrease in the number of infected people per day
SARS,ipyind
x_num = df1['day']
y_num = df1['total-change']
plt.plot(x_num,y_num)#Show graph
The initial fluctuations can be predicted to be due to gradual reports of infection from new countries.
### 5. See the increase in deaths
SARS.ipynd
x_num = df1['day']
y_num = df1['death']
plt.plot(x_num,y_num)#Show graph
As many as 800 people have died in about 100 days. In other words, as many as eight people are dead in a simple calculation day.
SARS.ipynd
x_num = df1['day']
y_num = df1['death-change']
plt.plot(x_num,y_num)#Show graph
The number of deaths per day is increasing or decreasing. This seems to be due to the cycle in which the news of death arrives.
###### Mortality
SARS.ipynd
df1['death'].sum() / df1['total'].sum()
It turns out that the case fatality rate is 0.08121591227553301, or about 8%.
SARS.ipynd
x_num = df1['day']
y_num = df1['recovery']
plt.plot(x_num,y_num)#Show graph
It can be seen that recovery people gradually appeared from around 20 days. The number of people recovering from it has increased significantly.
SARS.ipynd
x_num = df1['day']
y_num = df1['recovery_change']
plt.plot(x_num,y_num)#Show graph
A sharp rise is seen around 20 days. This seems to be related to the number of recoverers reported in each country.
However, the number of recoverers seems to be stable on average.
# Summary
This time, I focused on a simple and simple analysis.
I analyzed it using simple code and simple calculation, but I think it became easier to understand just by graphing it. In the future, I will also perform more advanced analysis and corona analysis.
Recommended Posts