innovate.policy_metadata_frame
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”def policy_metadata_frame(result: dict[str, Any]) -> pl.DataFrame: ...Project native policy metadata into a one-row typed DataFrame.
Parameters
Section titled “Parameters”result: Native result payload whosemetadatacontains intervention, model, treatment and outcome names and the confounder count.
Returns
Section titled “Returns”One-row table with string intervention_name, model_name,
treatment_variable and outcome_variable, and Int32
n_confounders. Other metadata fields are not part of this projection.
Raises
Section titled “Raises”KeyError: If the result lacksmetadata.TypeError: If the result has an incompatible structure.polars.exceptions.PolarsError: If metadata cannot satisfy the output schema.