timeseries_utils#

Utility functions for working with time series.

Functions#

get_sample(→ pandas.DatetimeIndex)

Sample the index of a pandas Series or DataFrame so that the frequency is not

get_sample_for_freq(s, freq[, tmin, tmax])

Sample a pandas Series or DataFrame so that the frequency is not higher than a

timestep_weighted_resample(→ pandas.Series)

Resample a time series to a new time index, using an overlapping period

time_weighted_resample(s, index[, method, ...])

Time-weighted resampling of a time series to arbitrary periods.

get_equidistant_series_nearest(→ pandas.Series)

Get equidistant time series using nearest reindexing.

pandas_equidistant_sample(→ pandas.Series)

Create equidistant time series creating a new DateTimeIndex with pandas.reindex.

pandas_equidistant_nearest(→ pandas.Series)

Create equidistant time series using pandas.reindex with method='nearest'.

pandas_equidistant_asfreq(→ pandas.Series)

Create equidistant time series by rounding timestamps and dropping duplicates.

resample(→ pandas.core.resample.Resampler)

Resample time-series data.