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

pastas.timeseries_utils.pandas_equidistant_nearest#

pandas_equidistant_nearest(series, freq, tolerance=None)[source]#

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

Note: this method will shift observations in time and can introduce duplicate observations.

Parameters
  • series (str) – time series.

  • freq (str) – frequency string.

  • tolerance (str, optional) – frequency type string (e.g. ‘7D’) specifying maximum distance between original and new labels for inexact matches.

Returns

equidistant time series with frequency ‘freq’

Return type

Series