categoricalRechunk

fnArrayData categoricalRechunk(const ArrayData[] chunks, DataType dtype) @trusted

Rebuilds multi-chunk categorical storage as one chunk: codes concatenate onto the reconciled dictionary, validity merges in row order.

Parameters

chunksthe source chunks
dtypethe shared CATEGORICAL dtype

Returns

the single rechunked chunk (one dictionary child).