https://github.com/gjeusel/ticts
A Python library for unevenly-spaced time series analysis
https://github.com/gjeusel/ticts
iot pandas python3 sensor timeseries unevenly-spaced
Last synced: 4 months ago
JSON representation
A Python library for unevenly-spaced time series analysis
- Host: GitHub
- URL: https://github.com/gjeusel/ticts
- Owner: gjeusel
- License: mit
- Created: 2019-05-23T18:48:33.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-12-16T08:50:36.000Z (6 months ago)
- Last Synced: 2025-12-19T21:45:35.349Z (6 months ago)
- Topics: iot, pandas, python3, sensor, timeseries, unevenly-spaced
- Language: Python
- Size: 955 KB
- Stars: 16
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
ticts
A Python library for unevenly-spaced time series analysis.
Greatly inspired by traces

Get Started [Notebook](https://mybinder.org/v2/gh/gjeusel/ticts/main?labpath=docs%2FTutorial.ipynb).
---
## Usage
```python
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
```bash
pip install ticts
```