Skip to main content

Stay up to date with corona virus data - Download and generate reports

Project description

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
  • All results are saved to the output reports folder

To-do list

NOTICE:

  • You may have noticed that here are some discrepancies in the JHU data.
  • These discrepancies include rows for countries missing for some sheets, misspelling of country names and countries being named differently (South Korea, Republic of Korea for example)
  • I am doing my best to update the preprocessing code to fix these problems. Please be patient and I will release the newest version of covidify ASAP

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:
  run
$ 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 
# Will default to desktop folder for output
covidify run --source=wiki   
covidify run --output=/Users/award40/Documents/projects-folder --source=git
# Filter reports by country
covidify run --country="South Korea"

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

covidify-0.1.12.tar.gz (12.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

covidify-0.1.12-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file covidify-0.1.12.tar.gz.

File metadata

  • Download URL: covidify-0.1.12.tar.gz
  • Upload date:
  • Size: 12.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

File hashes

Hashes for covidify-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d15068c1b3af0ab433ed700535badc35c224ef04fa4c92275b0bbeceef049daf
MD5 12bdbca895c1aeea0e9460789ec6c2bd
BLAKE2b-256 1eef02590af17940df1da154190d53d56685ecde634b10fb876dcbe6b7ad53f4

See more details on using hashes here.

File details

Details for the file covidify-0.1.12-py2.py3-none-any.whl.

File metadata

  • Download URL: covidify-0.1.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

File hashes

Hashes for covidify-0.1.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4c208ff9a708b567df07704904aa036e1fb1175a609d892be58c8cbf495a1721
MD5 99c5f0667c41f5f9f584dd3dc290c07c
BLAKE2b-256 1485c424f3be347ffcfcda6395d68a43c8d9adb03171e012585137f9ae12b052

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page