()
| 4331 | |
| 4332 | @pytest.mark.pandas |
| 4333 | def test_run_end_encoded_to_pandas(): |
| 4334 | arr = [1, 2, 2, 3, 3, 3] |
| 4335 | ree_array = pa.array(arr, pa.run_end_encoded(pa.int32(), pa.int64())) |
| 4336 | |
| 4337 | assert ree_array.to_pandas().tolist() == arr |
| 4338 | |
| 4339 | with pytest.raises(pa.ArrowInvalid): |
| 4340 | ree_array.to_pandas(zero_copy_only=True) |
| 4341 | |
| 4342 | |
| 4343 | @pytest.mark.parametrize(('list_array_type', 'list_type_factory'), |