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,
})
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
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.4.0.tar.gz
(77.1 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.4.0-py2.py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file ticts-0.4.0.tar.gz.
File metadata
- Download URL: ticts-0.4.0.tar.gz
- Upload date:
- Size: 77.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd47db9a0c7ef52360755785ca11a5b5a6b46fee8a5dd73efcaef3fbdc7404b
|
|
| MD5 |
028ab834a5c4ec89dc80999e2e7a87f7
|
|
| BLAKE2b-256 |
9368e8d115e3b3c43521bce4d99d81ad9363239bd9c148016566a925204eab0a
|
File details
Details for the file ticts-0.4.0-py2.py3-none-any.whl.
File metadata
- Download URL: ticts-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9866b19665fc3118877573423a0d35f9f8283056c564f0b26266d1312f1f0457
|
|
| MD5 |
c8bca25a9e4dbac931077d4f2ab6359c
|
|
| BLAKE2b-256 |
e45efe05db1b8884368bc860dd316428e17cfa700007a02c2d7070aae99e1026
|