MCPcopy Index your code
hub / github.com/dask/dask / test_compute_dataframe

Function test_compute_dataframe

dask/tests/test_base.py:415–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413
414@pytest.mark.skipif("not dd")
415def test_compute_dataframe():
416 df = pd.DataFrame({"a": [1, 2, 3, 4], "b": [5, 5, 3, 3]})
417 ddf = dd.from_pandas(df, npartitions=2)
418 ddf1 = ddf.a + 1
419 ddf2 = ddf.a + ddf.b
420 out1, out2 = compute(ddf1, ddf2)
421 dd.utils.assert_eq(out1, df.a + 1)
422 dd.utils.assert_eq(out2, df.a + df.b)
423
424
425@pytest.mark.skipif("not dd")

Callers

nothing calls this directly

Calls 1

computeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…