czka / covid_toll_tool

All-cause vs COVID-19 mortality in the context of vaccinations count, virus testing, restrictions stringency and the country's all-cause mortality in preceding years.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the repository

This repository contains a Python script along with PNG charts and CSV datasets it creates, showing all-cause mortality compared to COVID-19 mortality for a given country and year, in the context of restrictions stringency, vaccinations count, virus testing, and the country's all-cause mortality in preceding years.

How to use this

Browse charts and their datasets:

  • To see all charts on a single page click this CHARTS.md link. Updates are uploaded every few days when I decide enough new data are available. Here are few example charts:
Poland 2020 Israel 2021 Sweden 2021 Australia 2020 Latvia 2021
Poland 2020 Israel 2021 Sweden 2021 Australia 2020 Latvia_2021.png

Charts were rendered using covid_toll_tool.py with --interpolate switch set on. By default, this interpolation is disabled - please see covid_toll_tool.py --help and code for more details.

Render most up-to-date charts and datasets yourself:

  • Make sure you have Python 3.9 or newer with Pandas and matplotlib libraries installed.

  • git clone this repository.

  • cd to a directory where you have cloned it.

  • Download these 2 datasets from the OWID's GitHub repository into that same directory: excess_mortality.csv and owid-covid-data.csv.

  • Run ./covid_toll_tool.py --help to figure out how to proceed. The final product will be a PNG chart and a CSV dataset for the --country and --year specified on the command line. E.g. Poland_2020.png and Poland_2020.csv, if Poland and 2020 were specified, respectively.

About the data

All input data are provided by the Our World in Data (OWID) project under the Creative Commons BY license.

covid_toll_tool.py doesn't alter the OWID's data in a meaningful way. It mainly aggregates those that I find most relevant and combines them on one chart per country/year, for a convenient visual analysis. You can verify the identity of my charts' data against the original OWID's data using their Data explorer.

The only data presented on covid_toll_tool.py's charts that you won't find directly in OWID's Data explorer, but which were derived from those nevertheless, are:

OWID obtains their data from official sources like government healthcare agencies and academic institutions. For more information, please visit their README on the all-cause mortality data, README about the data on COVID-19 and the following resources those READMEs refer to:

  1. All-cause mortality:
  2. COVID-19 mortality:
  3. Restrictions stringency index:
  4. Vaccinations:
  5. Testing:

About

All-cause vs COVID-19 mortality in the context of vaccinations count, virus testing, restrictions stringency and the country's all-cause mortality in preceding years.

License:MIT License


Languages

Language:Python 100.0%