Code Monkey home page Code Monkey logo

covid-19-analysis's Introduction

covid-19-analysis

PyPi Version PyPI - Downloads PyPI - License Python Versions GitHub last commit GitHub issues

alt text

What does it do?

This repo is for analysis on the corona virus / covid-19 that will extract the latest data and generate reports. This repo will be updated daily

  • Creates a time series dataset
  • Creates a daily stats dataset
  • Generates a number of visualizations
  • You can also filter reports for a given country
  • Generates an excel report including all of the above
  • List all countries affected by covid-19
  • All results are saved to the output reports folder

To-do list


Installation

  • pip install covidify

How to run:

$ covidify
Usage: covidify [OPTIONS] COMMAND [ARGS]...

  ☣  COVIDIFY ☣

   - use the most up-to-date data to generate reports of 
     confirmed cases, fatalities and recoveries.

Options:
  --help  Show this message and exit.

Commands:
  list  List all the countries that have confirmed cases.
  run   Generate reports for global cases or refine by country.
$ covidify run --help
Usage: covidify run [OPTIONS]

Options:
  --output TEXT   Folder to output data and reports [Default:
                  /Users/award40/Desktop/covidify-output/]
  --source TEXT   There are two datasources to choose from, John Hopkins
                  github repo or wikipedia -- options are git or wiki
                  respectively [Default: git]
  --country TEXT  Filter reports by a country [Default: Global cases]
  --help          Show this message and exit.

Example Commands:

# Will default to desktop folder 
# for output and github for datasource
covidify run 
# Specify output folder and source
covidify run --output=/Users/award40/Documents/projects-folder --source=git
# Filter reports by country
covidify run --country="South Korea"
# List all countries affected 
covidify list --countries

Visualization of data

This plots will be updated daily to visualize stats 3 attributes:

  • confirmed cases
  • deaths
  • recoveries
Trend Line

This is an accumulative sum trendline for all the confirmed cases, deaths and recoveries. alt text

Daily Trend Line

This is a daily sum trendline for all the confirmed cases, deaths and recoveries. alt text

Stacked Daily Confirmed Cases

This stacked bar chart shows a daily sum of people who are currently confirmed (red) and the number of people who have been been confirmed on that day (blue)

alt text

Daily Confirmed Cases

A count for new cases recorded on that given date, does not take past confirmations into account. alt text

Daily Deaths

A count for deaths due to the virus recorded on that given date, does not take past deaths into account. alt text

Daily Recoveries

A count for new recoveries recorded on that given date, does not take past recoveries into account. alt text

Currently Infected

A count for all the people who are currently infected for a given date (confirmed cases - (recoveries + deaths)) alt text


Data Source

  • The data comes from the Novel Coronavirus (COVID-19) Cases, which is a live dataset provided by JHU CSSE.
  • Data available here.

Appendix

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.