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

Class ArrayWrapper

python/pyarrow/tests/test_table.py:503–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501
502def test_chunked_array_c_array_interface():
503 class ArrayWrapper:
504 def __init__(self, array):
505 self.array = array
506
507 def __arrow_c_array__(self, requested_schema=None):
508 return self.array.__arrow_c_array__(requested_schema)
509
510 data = pa.array([1, 2, 3], pa.int64())
511 chunked = pa.chunked_array([data])

Callers 1

Calls

no outgoing calls

Tested by 1