joshuAnalytics / covid_stats

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

US choropleth map #24

Open rtedwards opened 4 years ago

rtedwards commented 4 years ago

choropleth heatmap of US at state level

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

use a geoJSON file with US state boundaries join the data using the names of the states

this requires some cleanup / matching of the semantic regional 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