(ty, values)
| 1569 | |
| 1570 | @pytest.mark.parametrize(('ty', 'values'), all_array_types) |
| 1571 | def test_drop_null(ty, values): |
| 1572 | arr = pa.array(values, type=ty) |
| 1573 | result = arr.drop_null() |
| 1574 | result.validate(full=True) |
| 1575 | indices = [i for i in range(len(arr)) if arr[i].is_valid] |
| 1576 | expected = arr.take(pa.array(indices)) |
| 1577 | assert result.equals(expected) |
| 1578 | |
| 1579 | |
| 1580 | def test_drop_null_chunked_array(): |