Skip to main content

This package provides a simple way to visualize patterns in timeseries data mapping 24 hours onto a polar plot

Project description

clock_plots

clock_plots provides a simple way to visualize timeseries data mapping 24 hours onto the 360 degrees of a polar plot. For usage, please see the examples.ipynb Jupyter notebook

Time features are automatically generated for your timeseries These features include: year (int): Calendar year e.g. 2022 month (str): Calendar month e.g. "January" year_month (int): Calendar year and month in the format YYYYMM e.g. 202201 day (int): Day of calendar year e.g. 25 date (str): Expressed in the format YYYY-MM-DD e.g. 2022-01-25 week (int): Week of the calendar year e.g. 5 dayofweek (str): Short version of day of week e.g. Tue weekend (str): Either "weekday" or "weekend" where weekends are where dayofweek is either "Sat" or "Sun" hour (int): Hour of the day in 24 clock e.g. 14 minute (int): Minute of the hour e.g. 42 degrees (int): Angle around 24 hour clock-face measured in degrees, calculated using hours and minutes season (str): Season of the year defined as: "Winter" where month is either "December", "January" or "February" "Spring" where month is either "March", "April" or "May" "Summer" where month is either "June", "July" or "August" "Autumn" where month is either "September", "October" or "November" Using these it is then simple to filter your data and format your plot. For example you could filter for a particular year, plot seasons with different colors and weekday vs weekend days with different line dashes. Examples of this are given in examples.ipynb

Installation

To install this package run: pip install /path/to/clock_plots

or to install in editable mode, use: pip install -editable /path/to/clock_plots

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

clock_plot-0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

clock_plot-0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file clock_plot-0.1.tar.gz.

File metadata

  • Download URL: clock_plot-0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for clock_plot-0.1.tar.gz
Algorithm Hash digest
SHA256 98e4bfdc14e0c18eaee238623f0eac2b46b3717936d94cb43b2bedc5336741a5
MD5 a0939342aaf384a749f956e649dd70f7
BLAKE2b-256 1525a7915ee539d5530355f0292da1ca7ba1b68fb8810d00715e35cc8a3f99e1

See more details on using hashes here.

File details

Details for the file clock_plot-0.1-py3-none-any.whl.

File metadata

  • Download URL: clock_plot-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for clock_plot-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58c8b82438580d5e496c91e665338238ef4674e6747722e615bff3d04368f046
MD5 1e38e8b96a688141a5f158dc55b26045
BLAKE2b-256 5224b4a6664c8bdcc9ab58ff0698b1722e08f9daef355f5603e3c88843f30d06

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