Visualize evolution of the number of people hospitalized in French departments due to COVID-19 infection
COVID-19 and geographical data come from the French open data portal
Data are stored as pandas / GeoPandas dataframes
The map background is built with contextily
The final animated gif is built with matplotlib
Example: Evolution of the number of people hospitalized in French departments due to COVID-19 infection (one year of data)
Example: Evolution of hospitalizations in critical departments (one year of data)
Example: Plot data of one specific French department (e.g. 31 - Haute-Garonne)
Run the different notebooks to generate curves and map:
-
demo-covid-v2: build the animated gif with the map of France (demo-covid is deprecated)
-
demo-stats: basic stats on COVID-19 data
-
demo-plot-alldepts: plot evolution curves of most critical departments
-
demo-31: plot the data of a specific department (e.g. 31)
-
pandas - Python Data Analysis Library
-
GeoPandas - GeoPandas is an open source project which extends the datatypes used by pandas to allow spatial operations on geometric types.
-
contextily - Context geo-tiles in Python
Code executed with: Python 3.8.5, geopandas 0.8.1, pyproj 3.0.0
Warning: you have to create folders tmp and img at the root to save images for demo-covid
- Thomas Dubot
This project is licensed under the MIT License - see the LICENSE.md file for details
Data are provided by the French open data portal. More information here:
https://www.data.gouv.fr/fr/datasets/donnees-relatives-a-lepidemie-du-covid-19/
https://www.data.gouv.fr/fr/datasets/contours-des-departements-francais-issus-d-openstreetmap/