Skip to content

innovate.bootstrap_forecast_frame

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

def bootstrap_forecast_frame(result: dict[str, Any]) -> pl.DataFrame: ...

Flatten native bootstrap forecast arrays into time-by-series rows.

  • result: Native result payload, not its outer envelope, containing forecast.time, columns, baseline_rows and pointwise_intervals with matching dimensions. Missing interval estimates are represented by None.

DataFrame with time, series, baseline, lower and upper columns, ordered by input time then series. Numeric columns are Float64; missing interval bounds become null. No confidence level is inferred.

  • KeyError: If the required forecast fields are absent.
  • ValueError: If strict array lengths differ or interval pairs are malformed.
  • TypeError: If the payload does not contain the expected iterable structures.
  • polars.exceptions.PolarsError: If rows cannot be converted to the output schema.