joshuAnalytics / covid_stats

webapp with live covid-19 stats
1 stars 1 forks source link

World choropleth map #29

Open rtedwards opened 4 years ago

rtedwards commented 4 years ago

choropleth at country

dataset is accessed as CSV from https://www.google.com/covid19/mobility/

use a geoJSON file with country boundaries join the data using the names of the countries (ISO2 and ISO3 country codes)

this requires some cleanup / matching of the semantic country names between the geoJSON and google datasets

map the geoJSON polygons and use the google movement metrics as data for the colormapping using folium's choropleth method https://github.com/python-visualization/folium/blob/master/examples/GeoJSON_and_choropleth.ipynb

there could also be some sort of time filtering as the data is available at the daily level