MCPcopy
hub / github.com/ray-project/ray / batch_to_arrow_block

Method batch_to_arrow_block

python/ray/data/block.py:609–613  ·  view source on GitHub ↗

Create an Arrow block from user-facing data formats.

(cls, batch: Dict[str, Any])

Source from the content-addressed store, hash-verified

607
608 @classmethod
609 def batch_to_arrow_block(cls, batch: Dict[str, Any]) -> Block:
610 """Create an Arrow block from user-facing data formats."""
611 from ray.data._internal.arrow_block import ArrowBlockBuilder
612
613 return ArrowBlockBuilder._table_from_pydict(batch)
614
615 @classmethod
616 def batch_to_pandas_block(cls, batch: Dict[str, Any]) -> Block:

Callers 1

batch_to_blockMethod · 0.80

Calls 1

_table_from_pydictMethod · 0.45

Tested by

no test coverage detected