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

Function test_partition_nth_null_placement

python/pyarrow/tests/test_compute.py:3151–3159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3149
3150
3151def test_partition_nth_null_placement():
3152 data = list(range(10)) + [None] * 10
3153 random.shuffle(data)
3154
3155 for pivot in (0, 7, 13, 19):
3156 for null_placement in ("at_start", "at_end"):
3157 indices = pc.partition_nth_indices(data, pivot=pivot,
3158 null_placement=null_placement)
3159 check_partition_nth(data, indices, pivot, null_placement)
3160
3161
3162def test_select_k_array():

Callers

nothing calls this directly

Calls 2

listFunction · 0.85
check_partition_nthFunction · 0.85

Tested by

no test coverage detected