MCPcopy Create free account
hub / github.com/dask/dask / test_broadcast

Function test_broadcast

dask/dataframe/tests/test_dataframe.py:4713–4716  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4711
4712
4713def test_broadcast():
4714 df = pd.DataFrame({"x": [1, 2, 3, 4, 5]})
4715 ddf = dd.from_pandas(df, npartitions=2)
4716 assert_eq(ddf - (ddf.sum() + 1), df - (df.sum() + 1))
4717
4718
4719def test_scalar_with_array():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
sumMethod · 0.45

Tested by

no test coverage detected