pyarrow.compute.scatter#
- pyarrow.compute.scatter(values, indices, /, *, memory_pool=None)#
Scatter the values into specified positions according to the indices.
Place the i-th value at the position specified by the i-th index
- Parameters:
- valuesArray-like or scalar-like
Argument to compute function.
- indicesArray-like or scalar-like
Argument to compute function.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.