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.0.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.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ticts-0.6.0.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.0.tar.gz
Algorithm Hash digest
SHA256 89ff3521883dcd39fe5f094c3bdf3fbebfb99ec4b5e822a701a30c1e74d09ab1
MD5 ec87712baed6e965d1cc25350816005c
BLAKE2b-256 cb8d1577bfde230b640899fee6e5567ee9993607629e01aae64a7a73afaef3f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticts-0.6.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e68914c52ccac81e041f5fa7de977b2f012d1c0ea911433f626f060d105e20e4
MD5 09a08577fef70c4c230a9e08b9b4a34b
BLAKE2b-256 9dc1b3fcc7947e137e0f2db8173f44adfa27b822df49f16df12870179df877d3

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