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

Function test_chunked_array_to_np

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

Source from the content-addressed store, hash-verified

34
35
36def test_chunked_array_to_np():
37 data = pa.chunked_array([
38 [1, 2, 3],
39 [4, 5, 6],
40 []
41 ])
42 msg = "Cannot return a numpy.ndarray if NumPy is not present"
43
44 with pytest.raises(ImportError, match=msg):
45 data.to_numpy()
46
47
48def test_tensor_to_np():

Callers

nothing calls this directly

Calls 1

chunked_arrayMethod · 0.80

Tested by

no test coverage detected