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

Function test_arithmetic_subtract

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

Source from the content-addressed store, hash-verified

1934
1935
1936def test_arithmetic_subtract():
1937 left = pa.array([1, 2, 3, 4, 5])
1938 right = pa.array([0, -1, 1, 2, 3])
1939 result = pc.subtract(left, right)
1940 expected = pa.array([1, 3, 2, 2, 2])
1941 assert result.equals(expected)
1942
1943
1944def test_arithmetic_multiply():

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected