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

Function test_nested_arrays

python/pyarrow/tests/test_convert_builtin.py:308–315  ·  view source on GitHub ↗
(seq, inner_seq, factory)

Source from the content-addressed store, hash-verified

306@pytest.mark.parametrize("factory", [
307 pa.list_, pa.large_list, pa.list_view, pa.large_list_view])
308def test_nested_arrays(seq, inner_seq, factory):
309 arr = pa.array(seq([inner_seq([]),
310 inner_seq([1, 2]), None]),
311 type=factory(pa.int64()))
312 assert len(arr) == 3
313 assert arr.null_count == 1
314 assert arr.type == factory(pa.int64())
315 assert arr.to_pylist() == [[], [1, 2], None]
316
317
318@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

factoryFunction · 0.85
lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected