COVID data in Extremadura

May 9, 2021 · View on GitHub

This repository collects the data of COVID cases in Extremadura provided by the regional government for each population unit in the region.

In addition to the daily data, case notification rates from previous days is also calculated and provided.

File structure

In the raw folder it is possible to find the original pdf files provided by the regional government.

In the folder csv it is possible to find the csv files generated from the original files.

The pdf files from the regional government contain a large number of spelling errors in the names of towns/provinces/health zones, as well as being inconsistent on several occasions, with errors in the presentation of data - such as repetition of some towns on the same day-.

These errors have been fixed (as far as possible) in the csv files, in order to make it easier to automate the analysis of the data.

Finally, the munDATA folder contains the inhabitant numbers for every population unit in Extremadura, extracted from the Spanish National Institute of Statistics (INE) figures from 2019 and 2020 (see note below).

In addition to the data provided by the INE, the population of Valdelamantanza is included in the province of Cáceres. Although it belongs to the province of Salamanca, the regional government includes it in the reports because there is an agreement in place for health matters.

Data file

The file data.csv holds the collection of daily and accumulated cases from every population unit in Extremadura.

It is important to highlight that these are not values per municipality, but per population unit, the same way the regional government provides this data.

This file is conceived with the structure of a DataFrame, present in several libraries for different programming languages.

Its structure contains the following values:

ValueDescription
dayDay which the data is referring to. The regional government reports the cases from the previous day, so that date is also used here. For example, the data reported on October 2nd appears with 2020-10-01.
locationPopulation unit, with the name given by INE.
casesNotified cases on the specified day.
cases77-day case notification aggregation.
IA77-day case notification rate per 100 000 inhabitants (2019 data).
IA7_20207-day case notification rate per 100 000 inhabitants (2020 data).
cases1414-day case notification aggregation.
IA1414-day case notification rate per 100 000 inhabitants (2019 data).
IA14_202014-day case notification rate per 100 000 inhabitants (2020 data).

Values of case aggregation and case rate will be -1 on the first days of the collection, as there is not enough data to calculate them.

Values for the 2020 inhabitant data are also -1 for days earlier that January 1, 2021.

Also, the 7-day and 14-day case rate will also take that value in the case of the Monfragüe population unit, which the regional government mentions in one of the reports but for which no population data is available.

2019 and 2020 series

These data start at September 2020. Then, the most updated data for the inhabitant figures were dated at January 1, 2020, which were the ones used at that moment.

At the start of 2021, the INE published the updated data dated at January 1, 2021, which are also included in this repository.

To avoid a discontinuity in the temporal series, notification rates from both 2020 and 2021 inhabitant data are included for every day, as the table above shows.

This change happened on May 9, 2021, so earlier commits don't include the updated data.

Licence

The original data was published by the Junta de Extremadura (Extremadura regional government) and the Spanish National Institute of Statistics.

The subsequent work made on them lies on the public domain.