Skip to content

voiage.experimental.paired_draws.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) -> NormalizedInputBundle

Bind 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:

  • frame pa.Table | pl.DataFrame
  • dataset_id str
  • strategy_ids Sequence[str]
  • weight_field str | None (default: None)

Returns: NormalizedInputBundle