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

Function test_list_value_parent_indices

python/pyarrow/tests/test_array.py:3355–3364  ·  view source on GitHub ↗
(list_type)

Source from the content-addressed store, hash-verified

3353 pa.list_(pa.int32(), list_size=2),
3354 pa.large_list(pa.int32())])
3355def test_list_value_parent_indices(list_type):
3356 arr = pa.array(
3357 [
3358 [0, 1],
3359 None,
3360 [None, None],
3361 [3, 4]
3362 ], type=list_type)
3363 expected = pa.array([0, 0, 2, 2, 3, 3], type=pa.int64())
3364 assert arr.value_parent_indices().equals(expected)
3365
3366
3367@pytest.mark.parametrize(('offset_type', 'list_type'),

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected