Skip to content

Instantly share code, notes, and snippets.

@fredrike
Forked from mashhadazam/InitiatlizeCovid19data.py
Last active April 8, 2020 06:41
Show Gist options
  • Save fredrike/158d963176a1c8692af5606e9f482a9b to your computer and use it in GitHub Desktop.
Save fredrike/158d963176a1c8692af5606e9f482a9b to your computer and use it in GitHub Desktop.
## Import Libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
#%matplotlib inline
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots
plt.rcParams['figure.figsize'] = [15, 5]
from IPython import display
from ipywidgets import interact, widgets
## Read Data for Cases, Deaths and Recoveries
ConfirmedCases_raw=pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
Deaths_raw=pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv')
Recoveries_raw=pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment