window_plan
window_plan(
df ,
windows: Mapping ,
catalog ,
sources = None,
join = None,
)-> ‘ChunkPlan’
Plan each window’s piece of each row it reaches, clipped to its samples.
windows maps dims to ExplicitRanges of one row count, row i of each making window i (_request_row on the outputs, in window then source order); bounds are inclusive, and a window open at both ends spans its dim, keeping rows lacking it. The rows’ coordinates in catalog, found by sources (else the rows), name the samples kept. With join (cut’s max_shift, conflict and other dims), what a window’s earlier rows hold is theirs (_owned). Windows and rows pair in array operations, never a window at a time; the first dim is the plan’s.