Skip to main content

Provides basic data cleaning, wrangling and plotting of Covid tracking data

Project description

CovidTracker

Provides basic data cleaning, wrangling and plotting of Covid tracking data in Canada.

Functions

The CovidTracker package is designed for the easy retrieval and analysis of data pertaining to Covid trends in Canada, including information about cases, vaccinations and testing. The package serves as a wrapper for the opencovid.ca API, and provides additional helper functions for visualising the data, either as a time series or in the form of a map.

  • get_covid_data()

    Retrieve cleaned and formatted data of specified type and within (optionally) provided time ranges and locations

  • plot_time_series()

    Function for plotting time series trends in Covid data

  • calculate_stat_summary()

    Function for returning key statistical information about Covid data, such as long run trends and comparisons between provinces

  • plot_geographical()

    Function for plotting chloropleth maps with Covid data

Similar Packages

There are currently no other Python packages available that can perform the same set of data retrieval and analysis functionalities as CovidTracker. There are several packages that have similar functionality, but are most are tailored either towards covid data retrieval or data visualization. The packages designed for covid data retrieval also do not use the same data source as CovidTracker. Some examples of related Python packages useful for Covid data retrieval and data visualizations include:

  • covid19dh - For Covid data retrieval
  • covid- For Covid data retrieval
  • folium - For data visualizations
  • plotly - For data visualizations

Installation

$ pip install git+https://github.com/UBC-MDS/Group28-CovidTracker

Usage

from CovidTracker.get_covid_data import get_covid_data
from CovidTracker.plot_geographical import plot_geographical
from CovidTracker.plot_time_series import plot_ts
from CovidTracker.calculate_stat_summary import calculate_stat_summary

covid_df = get_covid_data('active')
plot_map = plot_geographical(covid_df,'cumulative_deaths')
plot_ts = plot_ts(covid_df, "active_cases")
summary = calculate_stat_summary(covid_df, 'active')

Contributing

We welcome and recognize all contributions. Please see contributing guidelines in the Contributing document. This repository is currently maintained by

  • Cuthbert Chow (@cuthchow)
  • Tianwei Wang (@Davidwang11)
  • Siqi Tao (@SiqiTao)
  • Jessie Wong (@jessie14)

License

CovidTracker was created by Group 28. It is licensed under the terms of the MIT license.

Credits

CovidTracker was created with cookiecutter and the py-pkgs-cookiecutter template.

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

CovidTracker-0.1.0.tar.gz (31.1 MB view details)

Uploaded Source

Built Distribution

CovidTracker-0.1.0-py3-none-any.whl (31.2 MB view details)

Uploaded Python 3

File details

Details for the file CovidTracker-0.1.0.tar.gz.

File metadata

  • Download URL: CovidTracker-0.1.0.tar.gz
  • Upload date:
  • Size: 31.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for CovidTracker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc1edbb2e878475d1b657c9c96e3958b3f3fe93e315ea13d975a7e3e8e595822
MD5 0f4f19e7dd7dd4d7a2acfbcfe4baa091
BLAKE2b-256 eb642350bcd57a5ffe5882d17066a56de52a66b18d2688259fa7cdefddee8eb5

See more details on using hashes here.

File details

Details for the file CovidTracker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: CovidTracker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for CovidTracker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 960abeed7d7efc528040e4ab0dbbe8ddb8e538b49a0bc1e301399ccb85847510
MD5 3359e47d731dafae18530d3f434a9424
BLAKE2b-256 bdbfa4ae4487e53484bbcba338b10c86c5f394b02ff0ebb68e7466b120024bf0

See more details on using hashes here.

Supported by

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