ray.data.block.BlockAccessor.batch_to_block#
- classmethod BlockAccessor.batch_to_block(batch: pyarrow.Table | pandas.DataFrame | Dict[str, numpy.ndarray], block_type: BlockType | None = None) pyarrow.Table | pandas.DataFrame [source]#
Create a block from user-facing data formats.