Skip to content

Latest commit

 

History

History
executable file
·
76 lines (33 loc) · 2.15 KB

README.md

File metadata and controls

executable file
·
76 lines (33 loc) · 2.15 KB

COVID-19 evolution in French departments (Last update: 18/03/21)

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)

covid

Example: Evolution of hospitalizations in critical departments (one year of data)

topdeps

Example: Plot data of one specific French department (e.g. 31 - Haute-Garonne)

hg

Running the tests

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)

Built With

  • 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

Versions

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

Authors

  • Thomas Dubot

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

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/