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

Function test_binary_array_strided

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

Source from the content-addressed store, hash-verified

3869
3870@pytest.mark.numpy
3871def test_binary_array_strided():
3872 # Masked
3873 nparray = np.array([b"ab", b"cd", b"ef"])
3874 arrow_array = pa.array(nparray[::2], pa.binary(2),
3875 mask=np.array([False, False]))
3876 assert [b"ab", b"ef"] == arrow_array.to_pylist()
3877
3878 # Unmasked
3879 nparray = np.array([b"ab", b"cd", b"ef"])
3880 arrow_array = pa.array(nparray[::2], pa.binary(2))
3881 assert [b"ab", b"ef"] == arrow_array.to_pylist()
3882
3883
3884@pytest.mark.numpy

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected