Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 2.71 KB

README.md

File metadata and controls

50 lines (39 loc) · 2.71 KB

COVID-19

A python dashboard for COVID-19 statistics. Deployed at https://worldwide-covid-19.herokuapp.com

History

With the world in the grips of the COVID-19 pandemic, I got tired of looking at daily situation reports from the World Health Organization. I started writing some python code to simply scrape the data from the report pdfs, and plot it. I started to look into producing a dashboard with a map, and eventually landed with Bokeh and GeoPandas. After yet another change to the format of the WHO reports (each requiring new tweaking to the scraper) I found where the data can be directly downloaded, and will rely on that from now on. Similarly, the code's been upgraded to directly access the data from Johns Hopkins, without the need to download manually.

Built With

  • Python 3.6.10
    • Bokeh 2.0.1
    • Geopandas 0.7.0

Running

First, obviously get python running with the above libraries. Second, go into the cloned directory and download the COVID-19 data from the WHO website into this directory. It is a csv file found at:

with the 'Download Map Data' button in the bottom right of the map. This file should be named WHO-COVID-19-global-data.csv (rename it if not). The recent code can also use the data from Johns Hopkins, which it pulls directly from their github. Also download, and unzip into this directory, the 110m and 50m shape files from natural earth:

Finally run:

bokeh serve --show COVID-19.py

Resources

Data from:

Shapefiles for maps:

Ideas and code snippets for