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

Function test_empty_list

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

Source from the content-addressed store, hash-verified

257
258@parametrize_with_collections_types
259def test_empty_list(seq):
260 arr = pa.array(seq([]))
261 assert len(arr) == 0
262 assert arr.null_count == 0
263 assert arr.type == pa.null()
264 assert arr.to_pylist() == []
265
266
267@parametrize_with_sequence_types

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected