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

Method __arrow_array__

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

Source from the content-addressed store, hash-verified

3961 self.data = data
3962
3963 def __arrow_array__(self, type=None):
3964 return pa.array(self.data, type=type)
3965
3966 arr = MyArray(np.array([1, 2, 3], dtype='int64'))
3967 result = pa.array(arr)

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected