ray.data.block.BlockAccessor.take#

BlockAccessor.take(indices: List[int]) Union[pyarrow.Table, pandas.DataFrame][source]#

Return a new block containing the provided row indices.

Parameters

indices – The row indices to return.

Returns

A new block containing the provided row indices.