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

Function test_array_eq

python/pyarrow/tests/test_array.py:750–763  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

748
749
750def test_array_eq():
751 # ARROW-2150 / ARROW-9445: we define the __eq__ behavior to be
752 # data equality (not element-wise equality)
753 arr1 = pa.array([1, 2, 3], type=pa.int32())
754 arr2 = pa.array([1, 2, 3], type=pa.int32())
755 arr3 = pa.array([1, 2, 3], type=pa.int64())
756
757 assert (arr1 == arr2) is True
758 assert (arr1 != arr2) is False
759 assert (arr1 == arr3) is False
760 assert (arr1 != arr3) is True
761
762 assert (arr1 == 1) is False
763 assert (arr1 == None) is False # noqa: E711
764
765
766@pytest.mark.numpy

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected