Coronavirus COVID-19 data and analysis tools
Clone repo
./install.sh
Get or update the data
source update_data.sh
ipython
from corona.read_data import read_jh_data
data = read_jh_data()
from corona.plotting import plot
plot(data, delta=True)
from corona.selector import Selector
s=Selector(country='Mainland China')
plot(data, delta=True, selector=s)
s=Selector(country='Mainland China', province='Guangdong')
plot(data, delta=True, selector=s)
s=Selector(country='Mainland China', province='!Hubei')
plot(data, delta=True, selector=s)
Just United States patients evaculated from the Diamond Princess ship. Shows ability to use an arbitrary function for selection
s = (country='US', filter=lambda x: "Diamond" in x['province'])
plot(data, selector=s, title='US Diamond Princess')
from corona.read_data import get_countries
get_countries()
from corona.read_data import get_countries
get_countries(province=True)
s=Selector(province="Sacramento County, CA")
plot(data, selector=s)