All Projects → cipriancraciun → covid19-datasets

cipriancraciun / covid19-datasets

Licence: other
COVID-19 derived and augmented datasets (based on JHU, NY Times, ECDC) exported as JSON, TSV, SQL, SQLite DB (plus visualizations)

Programming Languages

python
139335 projects - #7 most used programming language
jq
24 projects
julia
2034 projects
JSONiq
15 projects

Projects that are alternatives of or similar to covid19-datasets

Coronavirus
Java API Wrapper for tracking coronavirus (COVID-19, SARS-CoV-2) via https://git.io/Jvoep
Stars: ✭ 16 (-36%)
Mutual labels:  2019-ncov, covid-19
2019-nCoV-dash
新型冠状病毒(2019-nCoV)肺炎(COVID-19)疫情展示
Stars: ✭ 13 (-48%)
Mutual labels:  2019-ncov, covid-19
SARS2-Stat-KR
중국 우한 바이러스 한국 확진자 통계
Stars: ✭ 25 (+0%)
Mutual labels:  2019-ncov, covid-19
COVID19-taiwan
Release COVID-19 (SARS-CoV-2) FDA / NHI drugs screening results.
Stars: ✭ 24 (-4%)
Mutual labels:  2019-ncov, covid-19
corona-virus
一个冠状病毒肺炎传染病学研究数据集
Stars: ✭ 34 (+36%)
Mutual labels:  2019-ncov, covid-19
corona tracker
COVID-19 tracking app - submission for https://wirvsvirushackathon.org/
Stars: ✭ 13 (-48%)
Mutual labels:  2019-ncov, covid-19
cli-corona
📈 Track COVID-19 (2019 novel Coronavirus) statistics via the command line.
Stars: ✭ 14 (-44%)
Mutual labels:  2019-ncov, covid-19
CoronaTracker
A full stack framework to trace possible close-contact candidates within last specified days for an already detected covid-19 positive patient
Stars: ✭ 13 (-48%)
Mutual labels:  covid-19, covid-2019
COVID-19-AI
Collection of AI resources to fight against Coronavirus (COVID-19)
Stars: ✭ 25 (+0%)
Mutual labels:  2019-ncov, covid-19
covid-19
HDR UK - Resources for 🦠COVID-19 Research
Stars: ✭ 41 (+64%)
Mutual labels:  2019-ncov, covid-19
fahclient
Dockerized Folding@home client with NVIDIA GPU support to help battle COVID-19
Stars: ✭ 38 (+52%)
Mutual labels:  2019-ncov, covid-19
Covid 19
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
Stars: ✭ 27,932 (+111628%)
Mutual labels:  2019-ncov, covid-19
covid-19
Open source web map for tracking COVID-19 global cases
Stars: ✭ 23 (-8%)
Mutual labels:  2019-ncov, covid-19
COVID-19-historical-data-visualization-2019-nCoV-
使用BlankerL提供的数据仓库实现的新型冠状病毒疫情数据可视化
Stars: ✭ 47 (+88%)
Mutual labels:  2019-ncov, covid-19
covid19-interventionmeasures
Complexity Science Hub (CSH) Covid-19 Control Strategies List (CCCSL)
Stars: ✭ 56 (+124%)
Mutual labels:  2019-ncov, covid-19
COVID-19-Greece
A python-generated website for visualizing the novel coronavirus (COVID-19) data for Greece.
Stars: ✭ 21 (-16%)
Mutual labels:  2019-ncov, covid-19
us-covid19
Data repository of State's Health Department stats for COVID19 in the United States
Stars: ✭ 37 (+48%)
Mutual labels:  covid-19, covid-2019
CoronaVirusDatabase
A repository for analyzing references and database of "gisanddata.maps.arcgis.com" website for Corona Virus.
Stars: ✭ 38 (+52%)
Mutual labels:  covid-19, covid-2019
covid-19-data
COVID-19 datasets are constructed entirely from primary (government and public agency) sources
Stars: ✭ 104 (+316%)
Mutual labels:  2019-ncov, covid-19
covid19-data-greece
Datasets and analysis of Novel Coronavirus (COVID-19) outbreak in Greece
Stars: ✭ 16 (-36%)
Mutual labels:  2019-ncov, covid-19

COVID-19 derived datasets (JHU, NY Times, ECDC)

Table of contents:

About

This repository contains various datasets related to COVID-19 (JHU CSSE, NY Times, ECDC):

Also some visualizations based on the derived datasets are available at:

None of these datasets were collected by me, however I have re-processed, re-formatted and augmented them for easier manipulation.

Used by

Disclaimer

As with anything on the Internet these days, I take no responsibility for anything. :)

Visualizations

I have created a few groups of countries / regions, based on the derived datasets, and for each one I've plotted all the available metrics:

  • global -- JHU -- first 25 world-wide countries ordered by confirmed cases;
  • global-major -- JHU -- world-wide countries with more than 4M confirmed cases;
  • global-medium -- JHU -- world-wide countries with more than 1M confirmed cases, but less than 4M;
  • global-minor -- JHU -- world-wide countries with more than 500K confirmed cases, but less than 1M, limited to 20 countries;
  • europe -- ECDC or JHU -- first 25 European countries ordered by confirmed cases;
  • europe-major -- ECDC or JHU -- European countries with more than 1.5M confirmed cases;
  • europe-medium -- ECDC or JHU -- European countries with more than 500K confirmed cases, but less than 1.5M;
  • europe-minor -- ECDC or JHU -- European countries with more than 100K confirmed cases, but less than 500K, limited to 20 countries;
  • us -- NY Times -- first 25 US states ordered by confirmed cases;
  • us-major -- NY Times -- US states with more than 1M confirmed cases;
  • us-medium -- NY Times -- US states with more than 500K confirmed cases, but less than 1M;
  • us-minor -- NY Times -- US states with more than 100K confirmed cases, but less than 500K, limited to 20 states;
  • world -- JHU -- overall aggregated values;
  • continents -- JHU -- aggregated countries grouped by continents;
  • subcontinents -- JHU -- aggregated countries grouped by sub-continents;
  • romania -- JHU or ECDC -- Romania, Hungary, Bulgaria and a few other countries for comparison;

absolute_pop100k--confirmed delta--confirmed delta--deaths peak--confirmed peak--deaths

Dataset sources

JHU CSSE COVID-19 dataset

  • I have re-formatted the original JHU dataset in a one-data-point-per-row format (thus more "relational" and SQL friendly):
  • for other files and formats see (https://data.volution.ro/ciprian/f8ae5c63a7cccce956f5a634a79a293e/exports/jhu/v1/);
  • all the files above are also available in uncompressed format (just remove the .zst extension), or with gzip compression (just replace .zst with .gz);
  • I have also augmented the original JHU dataset with the following:
    • day_index_* means how many days have passed for that country since there were at least that many confirmed cases;
    • absolute_pop100k means the absolute metric per 100k people in that country / region;
    • relative_* means the percentage of that metric relative to the number of confirmed cases for that same day;
    • delta_* means the delta of that metric compared to the same metric for the previous day;
    • *_infected means the number of "active" cases (i.e. infected := confirmed - recovered - deaths);
  • I have normalized the country names (i.e. some countries are named differently in different rows, etc.);
  • I have augmented the country data with ISO codes, continents, subcontinents and other useful information;
  • I have augmented the country data with area, population, average death rate, and median age (from CIA Factbook);
  • I have added rows for continent and sub-continent levels;
  • the original data is available at github.com/CSSEGISandData/COVID-19;

NY Times COVID-19 dataset

ECDC COVID-19 dataset

  • although the original ECDC dataset is already in a friendly format, I have applied the same augmentations as described above for the JHU dataset:
  • for other files and formats see (https://data.volution.ro/ciprian/f8ae5c63a7cccce956f5a634a79a293e/exports/ecdc/v1/);
  • all the files above are also available in uncompressed format (just remove the .zst extension), or with gzip compression (just replace .zst with .gz);
  • all the transformations and augmentations described for the JHU one were applied also to the ECDC one;
  • the original data for the europe dataset is available at ecdc.europa.eu;
  • the original data for the worldwide dataset is available at ecdc.europa.eu;

Dataset example

  • all derived datasets (JHU, NY Times, ECDC) use exactly the same schema, thus can be used interchangeably;
  • the first is an example of such an augmented record (from the values.json file);
  • the second is an example of a status record (i.e. the latest values) (from the status.json file);
  • also, these datasets are also available in SQL and SQLite database formats;

values.json example extract

[
  ...

  {
    "dataset": "jhu/daily",
    "location": {
      "key": "fb583ceb1834efe5f595d1d7ac84a7f1",
      "type": "total-country",
      "label": "Italy",
      "country": "Italy",
      "country_code": "IT",
      "country_latlong": [
        42.83333333,
        12.83333333
      ],
      "province": null,
      "region": "Europe",
      "subregion": "Southern Europe",
      "administrative": null,
      "latlong": [
        42.83333333,
        12.83333333
      ]
    },
    "date": {
      "year": 2020,
      "month": 4,
      "day": 1,
      "date": "2020-04-01",
      "timestamp": 1585702800,
      "index": 71
    },
    "values": {
      "absolute": {
        "confirmed": 110574,
        "deaths": 13155,
        "recovered": 16847,
        "infected": 80572
      },
      "delta": {
        "confirmed": 4782,
        "recovered": 1118,
        "deaths": 727,
        "infected": 2937
      },
      "delta_pct": {
        "confirmed": 4.52019056261343,
        "recovered": 7.107889884925933,
        "infected": 3.7830875249565272,
        "deaths": 5.8496942388155775
      },
      "peak_pct": {
        "confirmed": 80.68979481641469,
        "recovered": 88.23993685872139,
        "deaths": 88.9405431857108,
        "infected": 67.14677640603567
      },
      "relative": {
        "deaths": 11.897010147050842,
        "recovered": 15.23595058512851,
        "infected": 72.86703926782064
      },
      "absolute_pop1k": {
        "confirmed": 1.771943724385206,
        "recovered": 0.26997247024361576,
        "deaths": 0.2108083246901386,
        "infected": 1.2911629294514517
      },
      "absolute_pop10k": {
        "confirmed": 17.71943724385206,
        "recovered": 2.6997247024361575,
        "deaths": 2.108083246901386,
        "infected": 12.911629294514517
      },
      "absolute_pop100k": {
        "confirmed": 177.19437243852062,
        "recovered": 26.997247024361577,
        "deaths": 21.08083246901386,
        "infected": 129.11629294514518
      }
    },
    "factbook": {
      "population": 62402659,
      "median_age": 46.5,
      "death_rate": 10.7,
      "area": 301340
    },
    "data_key": "fc397cfe886db71b40d2baf78a4827c5",
    "day_index_1": 62,
    "day_index_10": 41,
    "day_index_100": 39,
    "day_index_1k": 33,
    "day_index_10k": 23,
    "day_index_peak_confirmed": 8,
    "day_index_peak_deaths": 5,
    "day_index_peak": 6
  }

  ...
]

status.json example extract

{
  ...
  "countries": {
    ...

    "Italy": {
      "dataset": "jhu/daily",
      "location": {
        "label": "Italy",
        "type": "total-country",
        "country_code": "IT",
        "country": "Italy",
        "province": null,
        "administrative": null,
        "latlong": [
          42.83333333,
          12.83333333
        ]
      },
      "date": "2020-04-01",
      "day_index": {
        "confirmed_1": 62,
        "confirmed_10": 41,
        "confirmed_100": 39,
        "confirmed_1k": 33,
        "confirmed_10k": 23,
        "peak": 6,
        "peak_confirmed": 8,
        "peak_deaths": 5
      },
      "values": {
        "absolute": {
          "confirmed": 110574,
          "deaths": 13155,
          "recovered": 16847,
          "infected": 80572
        },
        "absolute_pop100k": {
          "confirmed": 177.19437243852062,
          "recovered": 26.997247024361577,
          "deaths": 21.08083246901386,
          "infected": 129.11629294514518
        },
        "delta": {
          "confirmed": 4782,
          "recovered": 1118,
          "deaths": 727,
          "infected": 2937
        },
        "relative": {
          "deaths": 11.897010147050842,
          "recovered": 15.23595058512851,
          "infected": 72.86703926782064
        },
        "peak_pct": {
          "confirmed": 80.68979481641469,
          "recovered": 88.23993685872139,
          "deaths": 88.9405431857108,
          "infected": 67.14677640603567
        }
      },
      "factbook": {
        "population": 62402659,
        "median_age": 46.5,
        "death_rate": 10.7,
        "area": 301340
      }
    }

    ...
  }
  ...
}

Attribution

If you use any of these derived datasets, please attribute both the original dataset and my derived dataset.

Choose (and adapt if necessary) one (or more) of the following snippets depending on which derived dataset you are using:

based on original data from JHU CSSE (https://github.com/CSSEGISandData/COVID-19),
as processed and augmented at https://github.com/cipriancraciun/covid19-datasets
based on original data from ECDC (https://www.ecdc.europa.eu/),
as processed and augmented at https://github.com/cipriancraciun/covid19-datasets
based on original data from "The New York Times" (https://github.com/nytimes/covid-19-data),
as processed and augmented at https://github.com/cipriancraciun/covid19-datasets

Licensing

  • the graphs are licensed under the Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0) license;
  • the data files are licensed under the Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0) license;
  • the sources and scripts are licensed under the Affero General Public License v3 (AGPLv3) license;
  • however, the original JHU CSSE COVID-19 data is copyrighted by the Johns Hopkins University, and provided to the public strictly for educational and academic research purposes; therefore I don't know if I am actually able to license my derived files data as CC BY-NC 4.0;
  • also, the original NY COVID-19 data is copyrighted by The New York Times, and made publicly available for broad, non-commercial public use; although they state that "the license is co-extensive with the CC BY-NC 4.0";
  • also, the original ECDC COVID-19 data is copyrighted by (I assume) the ECDC, and users must comply with data use restrictions to ensure that the information will be used solely for statistical analysis or reporting purposes, therefore I don't know if I am actually able to license my derived files data as CC BY-NC 4.0;
  • although given the global situation, I'll let the lawyers decide later...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].