Giter Site home page Giter Site logo

andreasrsa / covid-19-data Goto Github PK

View Code? Open in Web Editor NEW

This project forked from owid/covid-19-data

0.0 1.0 0.0 12.72 MB

Data on COVID-19 maintained by Our World in Data

Home Page: https://covid.ourworldindata.org

Jupyter Notebook 52.76% Python 47.24%

covid-19-data's Introduction

COVID-19 data

Collection of COVID-19 data & scripts used and maintained by Our World in Data.

NOTE: We plan to keep the data up to date for our own purposes only. We may stop maintaining this repository at any point.

Up until 17 March 2020, we were using WHO data manually extracted from their daily situation report PDFs.

From 19 March 2020, we started relying on data published by the European CDC. We wrote about why we decided to switch sources.

Data alterations

  • We convert all country/region names to Our World in Data standard entity names.
  • We may correct or discard inconsistencies that we detect in the original data. Check our notes on ECDC data for examples.

Hosting

The /public path of this repository is hosted at https://covid.ourworldindata.org/ using Netlify.

We do our best to keep all past URLs working, however we may decide to stop maintaining data extracts at any point. The order and names of the CSV columns may also change.

Update instructions

Prerequisites

  1. You must have Python 3.

    Check whether you do by running python3 --version.

  2. You must have pip installed.

    Check whether you do by running pip3 --version.

  3. Install virtualenv (if you don't have it):

    pip3 install virtualenv
  4. Create a virtual environment for the project (run at the root of this repository):

    virtualenv venv
  5. Activate the virtual environment:

    source venv/bin/activate
  6. Install all dependencies:

    pip3 install -r requirements.txt

ECDC data

To download the latest data and update the CSVs, run:

python3 scripts/ecdc.py

You will be asked for the release you want to use. The script should automatically download any new releases from today and yesterday, you will only need to select which one you want when prompted.


If the automatic download doesn't seem to work, then:

  1. Download the release manually from the ECDC website

  2. Move it to the /input/ecdc/releases folder in this repository and rename it to the date it refers to in ISO date format (e.g. 2020-03-20).

  3. Run the script again: python3 scripts/ecdc.py


If you get an error saying some entities are missing Our World in Data names, then:

  1. There should be a file at /tmp/ecdc.csv in the repository. Upload this file to the Country name standardizer of the Our World in Data Grapher.

  2. Make sure to create a name for every single entity.

  3. Download the standardized ecdc_country_standardized.csv file and move it to /input/ecdc/ecdc_country_standardized.csv in this repository.

  4. Run the script again: python3 scripts/ecdc.py


If you get an error unrelated to the above, something might have changed with the dataset and you will need to change the script, or something isn't installed correctly.

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.