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.0.tar.gz
(77.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ticts-0.5.0-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file ticts-0.5.0.tar.gz.
File metadata
- Download URL: ticts-0.5.0.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 |
746ab3eb41cf681ce8c7cd7fe6985f3012ab03ce227dfbc9396f638f51c3422f
|
|
| MD5 |
cd9ed2c145c29b4f3ddecba952869ea2
|
|
| BLAKE2b-256 |
5597795b7dbab0dd7a31bb00f37d92abc17c7c76084688affe65c0a640fc4197
|
File details
Details for the file ticts-0.5.0-py3-none-any.whl.
File metadata
- Download URL: ticts-0.5.0-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 |
c28dd9aa77f478018db6654684b834277e3851f7a6f093df5bc25f8b77f3b445
|
|
| MD5 |
d611b32209a30e3cb210ec6a694692f8
|
|
| BLAKE2b-256 |
067c68e27503c7964d8ca7204adccbd44b6635d64de556e974e7d9e55ec56070
|