voiage.experimental.paired_draws.paired_draw_bundle
paired_draw_bundle
Section titled “paired_draw_bundle”paired_draw_bundle([positional or keyword] frame: pa.Table | pl.DataFrame = None, [keyword-only] dataset_id: str = None, [keyword-only] strategy_ids: Sequence[str] = None, [keyword-only] weight_field: str | None = None) -> NormalizedInputBundleBind long net benefits to a declared strategy order within each draw scope.
The table carries draw_id, strategy_id, perspective, subgroup_id, and
net_benefit. Draw identifiers can be integers or text. Every draw within
a perspective and subgroup must contain all declared strategies once, with
finite values. A declared weight is shared by all rows for the same draw.
Arrow tables and flat primitive Polars columns keep their buffers at the interchange boundary. The returned bundle retains row order and metadata.
Parameters:
framepa.Table | pl.DataFramedataset_idstrstrategy_idsSequence[str]weight_fieldstr | None(default:None)
Returns: NormalizedInputBundle