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
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
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.3.1.tar.gz
(132.4 kB
view hashes)
Built Distribution
ticts-0.3.1-py2.py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for ticts-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2836a73adcb1a9d642ab2af49f0252bb40a134f0e07d91149ffaeb3b7916019c |
|
MD5 | dfb0447164764b518a203c403c6c8018 |
|
BLAKE2b-256 | 9e865219118ac7f1f569dfb85f53d15cea69f8dd2f0c9bf7ee94ca0b6444ce71 |