MCPcopy Create free account
hub / github.com/apache/arrow / test_logical

Function test_logical

python/pyarrow/tests/test_compute.py:2204–2216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2202
2203
2204def test_logical():
2205 a = pa.array([True, False, False, None])
2206 b = pa.array([True, True, False, True])
2207
2208 assert pc.and_(a, b) == pa.array([True, False, False, None])
2209 assert pc.and_kleene(a, b) == pa.array([True, False, False, None])
2210
2211 assert pc.or_(a, b) == pa.array([True, True, False, None])
2212 assert pc.or_kleene(a, b) == pa.array([True, True, False, True])
2213
2214 assert pc.xor(a, b) == pa.array([False, True, False, None])
2215
2216 assert pc.invert(a) == pa.array([False, True, True, None])
2217
2218
2219def test_dictionary_decode():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected