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

Function test_count_distinct_options

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

Source from the content-addressed store, hash-verified

3918
3919
3920def test_count_distinct_options():
3921 arr = pa.array([1, 2, 3, None, None])
3922 assert pc.count_distinct(arr).as_py() == 3
3923 assert pc.count_distinct(arr, mode='only_valid').as_py() == 3
3924 assert pc.count_distinct(arr, mode='only_null').as_py() == 1
3925 assert pc.count_distinct(arr, mode='all').as_py() == 4
3926 assert pc.count_distinct(arr, 'all').as_py() == 4
3927
3928
3929def test_utf8_normalize():

Callers

nothing calls this directly

Calls 2

as_pyMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected