innovate.bootstrap_forecast_frame
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”def bootstrap_forecast_frame(result: dict[str, Any]) -> pl.DataFrame: ...Flatten native bootstrap forecast arrays into time-by-series rows.
Parameters
Section titled “Parameters”result: Native result payload, not its outer envelope, containingforecast.time,columns,baseline_rowsandpointwise_intervalswith matching dimensions. Missing interval estimates are represented byNone.
Returns
Section titled “Returns”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.
Raises
Section titled “Raises”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.