STLForecastResults.forecast(steps: int = 1, **kwargs: Dict[str, Any]) → Union[numpy.ndarray, pandas.core.series.Series][source]

Out-of-sample forecasts

stepsint, str, or datetime, optional

If an integer, the number of steps to forecast from the end of the sample. Can also be a date string to parse or a datetime type. However, if the dates index does not have a fixed frequency, steps must be an integer. Default


Additional arguments may required for forecasting beyond the end of the sample. These arguments are passed into the time series model results’ forecast method.

forecast{ndarray, Series}

Out of sample forecasts