Skip to content

innovate.policy_metadata_frame

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

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

Project native policy metadata into a one-row typed DataFrame.

  • result: Native result payload whose metadata contains intervention, model, treatment and outcome names and the confounder count.

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.

  • KeyError: If the result lacks metadata.
  • TypeError: If the result has an incompatible structure.
  • polars.exceptions.PolarsError: If metadata cannot satisfy the output schema.