()
| 3918 | |
| 3919 | |
| 3920 | def 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 | |
| 3929 | def test_utf8_normalize(): |