Skip to main content

A Python library for unevenly-spaced time series analysis

Project description

codecov travis Python version 3.5+ Pypi package Documentation Status

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

example

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

Contributing

pip install pre-commit
pre-commit install --hook-type pre-push

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.3.5.tar.gz (75.2 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.3.5-py2.py3-none-any.whl (12.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: ticts-0.3.5.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for ticts-0.3.5.tar.gz
Algorithm Hash digest
SHA256 d3f8821e07fd241f0414fd4f5d5c05696962abd53ce5c24c389082db1817e27c
MD5 f83ceda4ca356e7d6d5fafd16ca251ad
BLAKE2b-256 f800e30ba29ddd052550fe7186c82a6befd390f5ee63ad2ed8433443a648dcc1

See more details on using hashes here.

File details

Details for the file ticts-0.3.5-py2.py3-none-any.whl.

File metadata

  • Download URL: ticts-0.3.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for ticts-0.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 658f9a2abc4fe4ad7bbf263dccee8d82b4150c3858142c3515ce44d5cb8ac74c
MD5 c433b9d7302f6e0fd7f5976a4fc1bce9
BLAKE2b-256 c157d11580f3f5d89974f3783079b090a168f2d41931cf76611aa08c6da0e28f

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