pastas.model.Model.set_oseries#
- pastas.model.Model.set_oseries(oseries: pandas.Series | None = None, metadata: dict[str, Any] | None = None, **kwargs) None#
Set a new oseries for an existing Model.
- Parameters:
oseries (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.