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

Function test_ops

dask/dataframe/tests/test_boolean.py:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_ops():
25 s1 = pd.Series(pd.array([True, False, None] * 3, dtype="boolean"))
26 s2 = pd.Series(pd.array([True] * 3 + [False] * 3 + [None] * 3, dtype="boolean"))
27
28 ds1 = dd.from_pandas(s1, 2)
29 ds2 = dd.from_pandas(s2, 2)
30
31 dd.utils.assert_eq(ds1 | ds2, s1 | s2)
32 dd.utils.assert_eq(ds1 & ds2, s1 & s2)
33 dd.utils.assert_eq(ds1 ^ ds2, s1 ^ s2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected