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

Function test_scalar_with_array

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

Source from the content-addressed store, hash-verified

4717
4718
4719def test_scalar_with_array():
4720 df = pd.DataFrame({"x": [1, 2, 3, 4, 5]})
4721 ddf = dd.from_pandas(df, npartitions=2)
4722
4723 da.utils.assert_eq(df.x.values + df.x.mean(), ddf.x.values + ddf.x.mean())
4724
4725
4726def test_has_parallel_type():

Callers

nothing calls this directly

Calls 1

meanMethod · 0.45

Tested by

no test coverage detected