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

Function test_dataframe_reductions_arithmetic

dask/dataframe/tests/test_dataframe.py:4238–4244  ·  view source on GitHub ↗
(reduction)

Source from the content-addressed store, hash-verified

4236 ],
4237)
4238def test_dataframe_reductions_arithmetic(reduction):
4239 df = pd.DataFrame({"x": [1, 2, 3, 4, 5], "y": [1.1, 2.2, 3.3, 4.4, 5.5]})
4240 ddf = dd.from_pandas(df, npartitions=3)
4241
4242 assert_eq(
4243 ddf - (getattr(ddf, reduction)() + 1), df - (getattr(df, reduction)() + 1)
4244 )
4245
4246
4247def test_median():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected