ray.data.block.BlockAccessor.to_numpy#

BlockAccessor.to_numpy(columns: str | List[str] | None = None) numpy.ndarray | Dict[str, numpy.ndarray][source]#

Convert this block (or columns of block) into a NumPy ndarray.

Parameters:

columns – Name of columns to convert, or None if converting all columns.