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

pastas.timeseries_utils.pandas_equidistant_asfreq#

pandas_equidistant_asfreq(series, freq)[source]#

Create equidistant time series by rounding timestamps and dropping duplicates.

Note: this method rounds all timestamps down to the nearest “freq” then drops duplicates by keeping the first entry. This means observations are shifted in time.

Parameters
  • series (pandas Series) – time series.

  • freq (str) – frequency string.

Returns

equidistant time series with frequency ‘freq’.

Return type

Series