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

Method __arrow_array__

python/pyarrow/tests/test_array.py:4001–4002  ·  view source on GitHub ↗
(self, type=None)

Source from the content-addressed store, hash-verified

3999 self.data = data
4000
4001 def __arrow_array__(self, type=None):
4002 return pa.chunked_array([self.data], type=type)
4003
4004 arr = MyArray2(np.array([1, 2, 3], dtype='int64'))
4005 result = pa.array(arr)

Callers

nothing calls this directly

Calls 1

chunked_arrayMethod · 0.80

Tested by

no test coverage detected