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

Class MyArray3

python/pyarrow/tests/test_array.py:4009–4015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4007 assert result.equals(expected)
4008
4009 class MyArray3:
4010 def __init__(self, data1, data2):
4011 self.data1 = data1
4012 self.data2 = data2
4013
4014 def __arrow_array__(self, type=None):
4015 return pa.chunked_array([self.data1, self.data2], type=type)
4016
4017 np_arr = np.array([1, 2, 3], dtype='int64')
4018 arr = MyArray3(np_arr, np_arr)

Callers 1

test_array_protocolFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_array_protocolFunction · 0.68