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

Function _to_pandas

python/ray/data/tests/test_random_e2e.py:45–46  ·  view source on GitHub ↗
(ds)

Source from the content-addressed store, hash-verified

43 random.shuffle(xs)
44
45 def _to_pandas(ds):
46 return ds.map_batches(lambda x: x, batch_size=None, batch_format="pandas")
47
48 # Test built-in global sum aggregation
49 ds = ray.data.from_items([{"A": x} for x in xs]).repartition(num_parts)

Callers 1

test_global_tabular_sumFunction · 0.70

Calls 1

map_batchesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…