Code Monkey home page Code Monkey logo

covid_toll_tool's Introduction

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:

covid_toll_tool's People

Contributors

czka avatar gdubicki avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gdubicki cracert

covid_toll_tool's Issues

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.