covid icon

Covid Python Library

From the CORGIS Dataset Project

By Dennis Kafura, Melanie Sutphin, Joung Min Choi and Bo Guan
Version 2.0.1, created 10/22/2021
Tags: Covid, Covid-19, pandemic, infection, world health

Overview

Since the beginning of the coronavirus pandemic, the Epidemic INtelligence team of the European Center for Disease Control and Prevention (ECDC) has been collecting on daily basis the number of COVID-19 cases and deaths, based on reports from health authorities worldwide. This helps to monitor and interpret the dynamics of the COVID-19 pandemic not only in the European Union (EU), the European Economic Area (EEA), but also worldwide. Every day a team of epidemiologists screens up to 500 relevant sources to collect the latest figures. The data screening is followed by ECDC standard epidemic intelligence process for which every single data entry is validated and documented in an ECDC database.

https://data.europa.eu/euodp/en/data/dataset/covid-19-coronavirus-data

Explore Structure

Each row represents Reports of Covid infection cases and deaths in a country on a given date..

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"Date" dict { }
"Data" dict { }
"Location" dict { }
Key Type Example Value Description
"Day" int 31 The day of the month for this report
"Month" int 12 The month of the year for this report
"Year" int 2019 The year of this report
Key Type Example Value Description
"Cases" int 0 Number of new cases reported
"Deaths" int 0 Number of new deaths reported
"Population" int 38041757 Population of the country in 2019
"Rate" float 0.0 Cumulative number of cases reported for 14 days per 100000 people
Key Type Example Value Description
"Country" str "Afghanistan" Name of country for this report (e.g., "United_States_of_America")
"Code" str "AFG" Three letter country code (e.g., :USA")
"Continent" str "Asia" Continent of country (e.g., "Asia", "Europe", "America")

Downloads

Download all of the following files.

  1. covid.py
  2. covid.data

Usage

import covid
report = covid.get_report()

Documentation

get_report()
Returns a list of dictionaries representing report.