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

Function test_array_from_strided_bool

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

Source from the content-addressed store, hash-verified

3142
3143@pytest.mark.numpy
3144def test_array_from_strided_bool():
3145 # ARROW-6325
3146 arr = np.ones((3, 2), dtype=bool)
3147 result = pa.array(arr[:, 0])
3148 expected = pa.array([True, True, True])
3149 assert result.equals(expected)
3150 result = pa.array(arr[0, :])
3151 expected = pa.array([True, True])
3152 assert result.equals(expected)
3153
3154
3155@pytest.mark.numpy

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected