24

Covidify – corona virus report generator (Python)

 4 years ago
source link: https://github.com/AaronWard/covid-19-analysis
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

covid-19-analysis

68747470733a2f2f696d672e736869656c64732e696f2f707970692f646d2f636f76696469667968747470733a2f2f696d672e736869656c64732e696f2f707970692f6c2f636f7669646966793f636f6c6f723d79656c6c6f7768747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4161726f6e576172642f636f7669642d31392d616e616c797369733f636f6c6f723d62726f776e68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4161726f6e576172642f636f7669642d31392d616e616c797369733f636f6c6f723d726564

spread.gif

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

To-do list

Installation

  • pip install covidify

How to run:

Desktop $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/$USER/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]
  --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

Results:

  • The package will pull the latest live data and generate following in the output folder:
    • Preprocessed time series data
    • graph reports

Visualization of data

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

confirmed cases
deaths
recoveries

Trend Line

This is an accumalitive sum trendline for all the confirmed cases, deaths and recoveries. confirmed_trendline.jpg

Daily Trend Line

This is an daily sum trendline for all the confirmed cases, deaths and recoveries. new_confirmed_cases_trendline.jpg

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 )

confirmed_cases_stacked_bar.jpg

Daily Confirmed Cases

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

Daily Deaths

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

Daily Recoveries

A count for new recovories recorded on that given date, does not take past recoveries into account. new_recoveries_bar.jpg

Currently Infected

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

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK