A Python library for unevenly-spaced time series analysis
Project description
A Python library for unevenly-spaced time series analysis. Greatly inspired by traces.
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
Release history Release notifications | RSS feed
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.1.6.tar.gz
(128.6 kB
view hashes)
Built Distribution
Close
Hashes for ticts-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d284942a72ddbbb7f12c747e45b795e023b18465cfefb02a9dc9eac9da6a0d0 |
|
MD5 | e604228f9c39089933b5d83a7ecc97e1 |
|
BLAKE2b-256 | d9de05450808c268c7ecf4a9cb53e70b6cf6eaf2c0b3a2dd0e24cfd3cc762a37 |