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

Function test_array_to_np

python/pyarrow/tests/test_without_numpy.py:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def test_array_to_np():
28 arr = pa.array(range(10))
29
30 msg = "Cannot return a numpy.ndarray if NumPy is not present"
31
32 with pytest.raises(ImportError, match=msg):
33 arr.to_numpy()
34
35
36def test_chunked_array_to_np():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected