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.6.1.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

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

ticts-0.6.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ticts-0.6.1.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ticts-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8b7adbba34a1a605f99bd70f58cb19b12119d129c7eb8fc93b8201e1e10ec529
MD5 0f1c8f3a13df9bc03a9d09c02e899cfb
BLAKE2b-256 12cc91182c42e16ca3d9b0578370ce283ae57e571e45eacc30af36643f06bdef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticts-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ticts-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 552f250366087129c60541aa48557dbdfae57709dee768d084ec86b799897322
MD5 789db1e0ff27b00fc959177c2d90de70
BLAKE2b-256 21af4be9884c01330187faeac44d5f7e5d4c089cd85e786c82ee3f4cb7a9d137

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