categoricalTake

fnArrayData categoricalTake(const ArrayData[] chunks, const size_t[] chunkStarts, const(size_t)[] indices, DataType dtype) @trusted

Gathers categorical slots at global indices: codes and validity gather onto the reconciled dictionary (the invariant's output holds by construction). An index of size_t.max is the null marker (the null-padded gathers of joins and shifts).

Parameters

chunksthe source chunks
chunkStartsthe global row start of every chunk
indicesthe global rows to gather (size_t.max gathers a null)
dtypethe shared CATEGORICAL dtype

Returns

the single gathered chunk (one dictionary child).