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

Function test_numpy_array_protocol

python/pyarrow/tests/test_table.py:3618–3622  ·  view source on GitHub ↗
(constructor)

Source from the content-addressed store, hash-verified

3616@pytest.mark.numpy
3617@pytest.mark.parametrize("constructor", [pa.table, pa.record_batch])
3618def test_numpy_array_protocol(constructor):
3619 table = constructor([[1, 2, 3], [4.0, 5.0, 6.0]], names=["a", "b"])
3620
3621 with pytest.raises(ValueError, match="Unable to avoid a copy"):
3622 np.array(table, copy=False)
3623
3624
3625@pytest.mark.acero

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected