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

pastas.timeseries_utils.pandas_equidistant_sample#

pandas_equidistant_sample(series, freq)[source]#

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

Note: function attempts to pick an offset relative to freq such that the maximum number of observations is included in the sample.

Parameters
  • series (pandas Series) – time series

  • freq (str) – frequency str

Returns

equidistant time series with frequency ‘freq’

Return type

Series