pastas.timeseries.ObservationSeries.update_series#

pastas.timeseries.ObservationSeries.update_series(force_update: bool = False, **kwargs) None#

Method to update the series with new options.

Parameters:
  • force_update (bool, optional) – argument that is used to force an update, even when no changes are found. Internally used by the __init__ method. Default is False.

  • freq (str, optional) – String representing the desired frequency of the time series. Must be one of the following: (D, h, m, s, ms, us, ns) or a multiple of that e.g. “7D”.

  • tmin (pandas.Timestamp or str, optional) – A string or pandas.Timestamp with the minimum time of the series (E.g. ‘1980-01-01 00:00:00’).

  • tmax (pandas.Timestamp or str, optional) –

    A string or pandas.Timestamp with the maximum time of the series (E.g. ‘2020-01-01 00:00:00’). Strings are converted to

    pandas.Timestamp internally.

Notes

The method will validate if any of the settings is changed to determine if the series need to be updated.