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

Function test_nested_lists

python/pyarrow/tests/test_convert_builtin.py:268–274  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

266
267@parametrize_with_sequence_types
268def test_nested_lists(seq):
269 data = [[], [1, 2], None]
270 arr = pa.array(seq(data))
271 assert len(arr) == 3
272 assert arr.null_count == 1
273 assert arr.type == pa.list_(pa.int64())
274 assert arr.to_pylist() == data
275
276
277@parametrize_with_sequence_types

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected