series_bindings.collapse_unbound_cells_to_ranges()
Collapse addresses into maximal sheet-qualified A1 rectangles.
Usage
series_bindings.collapse_unbound_cells_to_ranges(unbound_cells)Consecutive rows that share the same column-span signature become one rectangle per span (Sheet!B2:C10). Gaps in rows or columns split.