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

Function test_array_series_comp

dask/dataframe/dask_expr/tests/test_collection.py:2117–2126  ·  view source on GitHub ↗
(binop)

Source from the content-addressed store, hash-verified

2115 ],
2116)
2117def test_array_series_comp(binop):
2118 data = [1.0, 2.0, 3.0, 4.0]
2119 pd_data = pd.Series(data)
2120 d_series = from_pandas(pd.Series(data), npartitions=2)
2121 d_array = da.from_array(data, chunks=2)
2122
2123 expected = binop(pd_data, pd_data)
2124 for left, right in [(d_series, d_array), (d_array, d_series)]:
2125 res = binop(left, right)
2126 assert_eq(res, expected)
2127
2128
2129def test_len_shuffle_repartition(df, pdf):

Callers

nothing calls this directly

Calls 3

from_pandasFunction · 0.90
assert_eqFunction · 0.90
binopFunction · 0.85

Tested by

no test coverage detected