ray.data.block.BlockAccessor.to_batch_format#
- BlockAccessor.to_batch_format(batch_format: str | None) pyarrow.Table | pandas.DataFrame | Dict[str, numpy.ndarray] [source]#
Convert this block into the provided batch format.
- Parameters:
batch_format – The batch format to convert this block to.
- Returns:
This block formatted as the provided batch format.