A library for processing timeseries features over a dataframe.
Project description
timeseries-features
A library for processing timeseries features over a dataframe of timeseries.
Dependencies :globe_with_meridians:
Python 3.11.6:
Raison D'être :thought_balloon:
timeseries-features aims to process features relevant to predicting future values.
Architecture :triangular_ruler:
timeseries-features is a functional library, meaning that each phase of feature extraction gets put through a different function until the final output. It contains some caching when the processing is heavy (such as skill processing). The features its computes are as follows:
- Lags
- Rolling Count
- Rolling Sum
- Rolling Mean
- Rolling Median
- Rolling Variance
- Rolling Standard Deviation
- Rolling Minimum
- Rolling Maximum
- Rolling Skew
- Rolling Kurtosis
- Rolling Standard Error of the Mean
- Rolling Rank
Installation :inbox_tray:
This is a python package hosted on pypi, so to install simply run the following command:
pip install timeseriesfeatures
or install using this local repository:
python setup.py install --old-and-unmanageable
Usage example :eyes:
The use of timeseriesfeatures is entirely through code due to it being a library. It attempts to hide most of its complexity from the user, so it only has a few functions of relevance in its outward API.
Generating Features
To generate features:
import datetime
import pandas as pd
from timeseriesfeatures.process import process
df = ... # Your timeseries dataframe
df = process(df, windows=[datetime.timedelta(days=365), None], lags=[1, 2, 4, 8])
This will produce a dataframe that contains the new timeseries related features.
License :memo:
The project is available under the MIT License.
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
File details
Details for the file timeseriesfeatures-0.0.4.tar.gz.
File metadata
- Download URL: timeseriesfeatures-0.0.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0688d1c4d5a50af2325f454d88b72b80f3de56917da320da500c88b9d5bb1352
|
|
| MD5 |
58ea1ce2eeb8c7fa26f57053f64864ce
|
|
| BLAKE2b-256 |
7a3397e81c920c870658e07721c5f933d146ae3eb8956a9079e4c3ab6a384b98
|