Coder Social home page Coder Social logo

c19's Introduction

COVID-19 death data for Sweden

This is an unofficial mirror of the Public Health Agency of Sweden's (Folkhälsomyndigheten) COVID-19 historical death data.

The data is updated automatically at 14:10 everyday by the update.R script, which fetches data from the Excel file published at https://www.folkhalsomyndigheten.se/smittskydd-beredskap/utbrott/aktuella-utbrott/covid-19/bekraftade-fall-i-sverige/

Read-only access to the PostgreSQL database at c19.truthly.com is publicly available without any password.

PostgreSQL is completely free and can be downloaded from https://www.postgresql.org/download/

Once installed, you can connect to the database by opening up Terminal and executing:

psql -U c19 -h c19.truthly.com c19

Once logged in to the PostgreSQL database, you can execute SQL queries using the deaths table:

SELECT
    MAX(report_date) AS last_report_date,
    MAX(deaths) AS max_per_day,
    SUM(deaths),
    MAX(death_date)-MIN(death_date) AS death_days
FROM deaths
WHERE report_date = (SELECT MAX(report_date) FROM deaths);
 last_report_date | max_per_day | sum  | death_days
------------------+-------------+------+------------
 2020-04-23       |         111 | 2006 |         43
(1 row)

Below are three graphs generated by the lageffect.R script in this repo. GraphA GraphB GraphC

c19's People

Contributors

joelonsql avatar

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.