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

Function test_chunked_array_iter

python/pyarrow/tests/test_table.py:232–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231
232def test_chunked_array_iter():
233 data = [
234 pa.array([0]),
235 pa.array([1, 2, 3]),
236 pa.array([4, 5, 6]),
237 pa.array([7, 8, 9])
238 ]
239 arr = pa.chunked_array(data)
240
241 for i, j in zip(range(10), arr):
242 assert i == j.as_py()
243
244 assert isinstance(arr, Iterable)
245
246
247def test_chunked_array_equals():

Callers

nothing calls this directly

Calls 3

chunked_arrayMethod · 0.80
as_pyMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected