A Python library for unevenly-spaced time series analysis.
Project description
ticts
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,
})
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
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.5.1.tar.gz
(77.9 kB
view details)
Built Distribution
ticts-0.5.1-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file ticts-0.5.1.tar.gz
.
File metadata
- Download URL: ticts-0.5.1.tar.gz
- Upload date:
- Size: 77.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc0a889631ef2f2395ffd87ca2e0aafd4261e8bc0dbbc59bb624a517079360cc |
|
MD5 | 54183409c4a484e4b48c2960a32d06b7 |
|
BLAKE2b-256 | 9c1fc6127dff526be07d9eb69bd6021a9298c57dee470fb2c4bbab63cc6216f5 |
File details
Details for the file ticts-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: ticts-0.5.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e74b69fe6ae8840e586bd562bfe7808c846b1802f133bdaeebf03f3d2b854aec |
|
MD5 | 66b9038292ca59308773c3b3d7cb13e4 |
|
BLAKE2b-256 | c4d6ca4d73cafca66504e9e2aa4d13d613965d8cf453ecf8abea2f68d41e33ad |