pastas.model.Model.set_oseries#
- pastas.model.Model.set_oseries(s: pandas.Series, metadata: dict[str, Any] | None = None) None#
Set a new oseries for an existing Model.
- Parameters:
s (pandas.Series) – The time series to be set as the oseries.
metadata (dict, optional) – Dictionary containing metadata about the time series. If None, the metadata from the existing oseries will be used. Te default is None.
Notes
This method replaces the existing oseries with a new TimeSeries object while preserving the original metadata if no new metadata is provided.