Code Monkey home page Code Monkey logo

covid_data's Introduction

Covid data from PHE

Table of Contents

A simple (text) graph showing Covid daily cases from 1 Jan 2021.

Setup

python3.8 -m venv .venv
# or python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt

Run

$ make
# or
$ make fetch show
# or without data fetch, only making the graph
$ make show
...
           new_daily_cases daily_delta      daily_graph seven_day_avg seven_day_avg_graph
date
2021-01-01          53,285      -2,607  •••••••••••            45,701     •••••••••••
2021-01-02          57,725      +4,440  ••••••••••••           48,849     ••••••••••••
2021-01-03          54,990      -2,735  ••••••••••••           52,347     •••••••••••••
2021-01-04          58,784      +3,794  ••••••••••••           54,833     •••••••••••••
2021-01-05          60,916      +2,132  •••••••••••••          55,945     ••••••••••••••
2021-01-06          62,322      +1,406  •••••••••••••          57,702     ••••••••••••••
2021-01-07          52,618      -9,704  •••••••••••            57,234     ••••••••••••••
...
2021-07-21          44,104      -2,454  •••••••••              47,695     •••••••••••
2021-07-22          39,906      -4,198  ••••••••               46,460     •••••••••••
2021-07-23          36,389      -3,517  •••••••                44,248     ••••••••••
2021-07-24          31,795      -4,594  ••••••                 40,980     ••••••••••
2021-07-25          29,173      -2,622  ••••••                 38,267     •••••••••
2021-07-26          24,950      -4,223  •••••                  36,125     ••••••••
2021-07-27          23,511      -1,439  ••••                   32,832     ••••••••
2021-07-28          27,734      +4,223  •••••                  30,494     •••••••
min=0, max=68053
Note
If you installed your virtualenv into a different directory, call make with VENV env variable pointing to it, like so: make VENV=my_venv.
Note
You can change the width of the graphs with STAR_COUNT make variable, like so: make STAR_COUNT=15 (this will make the graphs no more than 15 "dots" wide).

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.