ray.data.block.BlockAccessor.slice#

BlockAccessor.slice(start: int, end: int, copy: bool) pyarrow.Table | pandas.DataFrame[source]#

Return a slice of this block.

Parameters:
  • start – The starting index of the slice.

  • end – The ending index of the slice.

  • copy – Whether to perform a data copy for the slice.

Returns:

The sliced block result.