The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

pastas.timeseries_utils#

This module contains utility functions for working with time series.

Functions

get_equidistant_series_nearest

Get equidistant time series using nearest reindexing.

get_sample

Sample the index so that the frequency is not higher than the frequency of ref_tindex.

pandas_equidistant_asfreq

Create equidistant time series by rounding timestamps and dropping duplicates.

pandas_equidistant_nearest

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

pandas_equidistant_sample

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

resample

Resample time-series data.

timestep_weighted_resample

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