MCPcopy
hub / github.com/dask/dask / test_from_array_partition_pruning

Function test_from_array_partition_pruning

dask/dataframe/dask_expr/io/tests/test_io.py:524–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522
523
524def test_from_array_partition_pruning():
525 arr = np.random.random(size=(200, 2))
526 df = dd.from_array(arr, chunksize=100)
527 result = df.partitions[1]
528 expected = arr[100:]
529 assert_eq(result, pd.DataFrame(expected, index=list(range(100, 200))))
530
531
532def test_map_partitions_assign_fusedio(tmpdir):

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randomMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…