<jupyter_start><jupyter_text>Dane na dzień 03.04.2020<jupyter_code>import pandas as pd
import scipy.integrate
import matplotlib.pyplot as plt
cd "/content/drive/My Drive/Colab Notebooks/Coronavirus_analysis"
df = pd.read_csv('Zarażenia.csv', sep=';', index_col='OBJECTID')
df.head()<jupyter_output><empty_output><jupyter_text>Prezentacja danych na temat pandemi w podziale na województwa<jupyter_code>df_region = df.groupby('Województwo')['Aktualnie zarażeni'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()
df_region = df.groupby('Województwo')['Zmarli'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()
df_region = df.groupby('Województwo')['Wyleczeni'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()
df_region = df.groupby('Województwo')['Hospitalizacja'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()
df_region = df.groupby('Województwo')['Kwarantanna'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()
df_region = df.groupby('Województwo')['Nadzór'].sum()
df_region = df_region.sort_values(ascending=False)
df_region.plot(kind='bar', figsize=(15,5))
plt.show()<jupyter_output><empty_output><jupyter_text>Analiza przebiegu pandemii<jupyter_code>df_agregate_by_day = df.groupby('Data informacji')['Aktualnie zarażeni'].sum()
df_agregate_by_day.head()


def seincrad_model_with_lockdown(state, t, beta, eps, eta, kappa,
      mr, reduction_level, sigma, omega, ndr, lockdown_day):
 
   if t >= lockdown_day:
       beta = reduction_level * beta
       
   s, e, i, n, c, r, a, d = state
   dsdt = -beta * i * s
   dedt = beta * i * s - eps * e
   didt = eps * e - eta * (1-ndr) * i - sigma * ndr * i
   dndt = sigma * ndr * i
   dcdt = eta * (1-ndr) * i
   drdt = kappa * (1-mr) * a
   dadt = eta * (1-ndr) * i - kappa * (1-mr) * a - omega * mr * a
   dddt = mr * omega * a
   
   return [dsdt, dedt, didt, dndt, dcdt, drdt, dadt, dddt]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16155606407322654, 'fraction_numerical': 0.014187643020594966, 'mean_word_length': 5.564564564564565, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '412034', 'license': 'MIT', 'n_tokens_mistral': 946, 'n_tokens_neox': 915, 'n_words': 160, 'path': 'Coronavirus_analysis.ipynb', 'repo_name': 'sergiusz28/Coronavirus_analysis', 'size': '2185'}