Skip to main content

A Python library for unevenly-spaced time series analysis.

Project description

ticts logo

Test Suite Coverage Package version MKDocs github page

A Python library for unevenly-spaced time series analysis. Greatly inspired by traces

Example plot

Get Started Notebook.


Usage

from ticts import TimeSeries
ts = TimeSeries({
  '2019-01-01': 1,
  '2019-01-01 00:10:00': 2,
  '2019-01-01 00:11:00': 3,
})

not_in_index = '2019-01-01 00:05:00'
assert ts[not_in_index] == 1  # step function, previous value

ts['2019-01-01 00:04:00'] = 10
assert ts[not_in_index] == 10

assert ts + ts == 2 * ts

ts_evenly_spaced = ts.sample(freq='1Min')

# From ticts to pandas, and the other way around
assert ts.equals(
  ts.to_dataframe().to_ticts(),
)

Installation

pip install ticts

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

ticts-0.5.1.tar.gz (77.9 kB view details)

Uploaded Source

Built Distribution

ticts-0.5.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file ticts-0.5.1.tar.gz.

File metadata

  • Download URL: ticts-0.5.1.tar.gz
  • Upload date:
  • Size: 77.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for ticts-0.5.1.tar.gz
Algorithm Hash digest
SHA256 bc0a889631ef2f2395ffd87ca2e0aafd4261e8bc0dbbc59bb624a517079360cc
MD5 54183409c4a484e4b48c2960a32d06b7
BLAKE2b-256 9c1fc6127dff526be07d9eb69bd6021a9298c57dee470fb2c4bbab63cc6216f5

See more details on using hashes here.

File details

Details for the file ticts-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: ticts-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for ticts-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e74b69fe6ae8840e586bd562bfe7808c846b1802f133bdaeebf03f3d2b854aec
MD5 66b9038292ca59308773c3b3d7cb13e4
BLAKE2b-256 c4d6ca4d73cafca66504e9e2aa4d13d613965d8cf453ecf8abea2f68d41e33ad

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