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,
})
assert ts['2019-01-01 00:05:00'] == 1

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

assert ts + ts == 2 * ts

from datetime import timedelta
onemin = timedelta(minutes=1)
ts_evenly_spaced = ts.sample(freq=onemin)

# if pandas installed:
df = ts.to_dataframe()

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.2.4.tar.gz (131.4 kB view hashes)

Uploaded Source

Built Distribution

ticts-0.2.4-py2.py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 2 Python 3

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