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

Method __arrow_array__

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

Source from the content-addressed store, hash-verified

3986 self.data = data
3987
3988 def __arrow_array__(self, type=None):
3989 return np.array(self.data)
3990
3991 arr = MyArrayInvalid(np.array([1, 2, 3], dtype='int64'))
3992 with pytest.raises(TypeError):

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected