joshuAnalytics / covid_stats

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

UK choropleth map #19

Open joshuAnalytics opened 4 years ago

joshuAnalytics commented 4 years ago

choropleth heatmap of uk at local authority level

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

use a geoJSON file with UK local authority boundaries join the data using the names of the areas

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

Screenshot 2020-05-03 at 19 48 18