Manage time series data with explicit frequency and unit.
Project description
TimeSeriesX
The eXtended time series library.
Manage time series data with explicit time zone, frequency and unit.
Free software: MIT license
Documentation: https://timeseriesx.readthedocs.io.
About
TimeSeriesX is motivated by handling time series data in a convenient way. Almost all the features are actually already provided by pandas. TimeSeriesX extends the pandas time series functionality by the unit functionalities of pint and pint-pandas. Further, TimeSeriesX offers an easy and convenient interface to work with time series without the need to dig deep into these libraries, which nevertheless is still recommended, since they go way beyond time series data.
The main challenges that arise when handling time series data are time zones and frequencies. Since time series data is often obtained by measurements, the values are associated with units. Then these units can be confused easily, since the units are often not modeled in code.
TimeSeriesX forces the user to handle time zones, frequencies and units explicitly, while taking care of validation and convenient formats. It also supports deriving these attributes from raw time series data. It offers a limited set of actions on time series that are translated to pandas or pint functionality under the hood. It was designed to guarantee that every transformation of time series data results in a new valid time series, which would require quite some pandas code if done “manually”.
Features
model time series data with explicit frequency, time zone and unit
convert time zone or unit
resample data to new frequency
fill and get gaps
join time series
perform calculations on time series with python standard operators
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.6 (2021-09-13)
fix time zone issue with UTC in basic calculations for TimestampSeries as 2nd operand
update pint-pandas version dependency
use pint’s default unit registry
add support of callables as arguments for frequency resampling
add more tests
0.1.5 (2021-09-10)
fix time zone issue with UTC in basic calculations
add round-method for TimestampSeries
fix map-function for series with unit
add more tests
0.1.4 (2021-09-09)
improve test coverage
improve TimeSeries equality check
support NaN-removal in as_pd_series-method
0.1.3 (2021-09-08)
remove manual timezone checks because it is handled by pandas
fix skipped tests
fix repr() method of TimestampSeries
fix basic calculation with units involved
0.1.2 (2021-09-07)
fix timezone handling
First release on PyPI Index.
0.1.1 (2021-02-16)
First release on PyPI Test Index.
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
Built Distribution
Hashes for timeseriesx-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ffb457ff1e7717312e9e819c8c20952b5bed72307bddbb83362b84f29b5b64 |
|
MD5 | a1ac37a77f3807af80e3dafcd103b227 |
|
BLAKE2b-256 | 63d807fd47ec83dbeb6f4be59fd725a5b8491cf661394617ef511a719e9a3acc |