%run covid-19-data.ipynb
import pandas as pd
import numpy as np
import cufflinks as cf
Country/Region | US | India | Brazil | France | Turkey | Russia | United Kingdom | Italy | Argentina | Germany |
---|---|---|---|---|---|---|---|---|---|---|
1/22/20 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1/23/20 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1/24/20 | 2 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 |
1/25/20 | 2 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
1/26/20 | 5 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
5/27/21 | 33217995 | 27555457 | 16342162 | 5697076 | 5220549 | 4977332 | 4489552 | 4205970 | 3663215 | 3673990 |
5/28/21 | 33239963 | 27729247 | 16391930 | 5708350 | 5228322 | 4986458 | 4493582 | 4209707 | 3702422 | 3680159 |
5/29/21 | 33251939 | 27894800 | 16471600 | 5719877 | 5235978 | 4995613 | 4496823 | 4213055 | 3732263 | 3684672 |
5/30/21 | 33258664 | 28047534 | 16515120 | 5728418 | 5242911 | 5005171 | 4499937 | 4216003 | 3753609 | 3687715 |
5/31/21 | 33264399 | 28175044 | 16545554 | 5728788 | 5249404 | 5013512 | 4503231 | 4217821 | 3781784 | 3689921 |
496 rows × 10 columns
# Time series total confirmed by country
fig = df_confirmed.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'Logarithmic COVID-19 time series total confirmed by country as of {confirmed_latest}',logy=True)
fig.show()
# Time series total deaths by country
fig = df_deaths.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'Logarithmic COVID-19 time series total deaths by country as of {deaths_latest}',logy=True)
fig.show()
# Time series total recovered by country
fig = df_recovered.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'Logarithmic COVID-19 time series total recovered by country as of {recovered_latest}',logy=True)
fig.show()
# Total confirmed by date
fig = df_confirmed_total.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'Logarithmic COVID-19 time series total confirmed as of {confirmed_latest}',logy=True)
fig.show()
# Total deaths by date (Logarithmic)
fig = df_deaths_total.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'Logarithmic COVID-19 time series total deaths as of {deaths_latest}',logy=True)
fig.show()
# Total recovered by date
fig = df_recovered_total.iplot(asFigure=True, xTitle="Date", yTitle="Number", title=f'COVID-19 time series total confirmed as of {recovered_latest}',logy=True)
fig.show()