Git Product home page Git Product logo

covid-france's Introduction

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 animated gif is built with matplotlib


Example: hospitalizations year after year (latest update: 05/07/22)

hospitalizations

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:

  • year-after-year: visualize hospitalizations for each day year after year

  • demo-2021-vs-2020: hospitalizations and deaths of 2020 and 2021 on the same plot

  • 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/

covid-france's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.