Commits


Joris Van den Bossche authored and GitHub committed 84e54308f13
GH-34686: [Python] Add RunEndEncodedScalar class (#34924) ### Rationale for this change Follow-up on https://github.com/apache/arrow/pull/34570 (exposing the new RunEndEncoded array and type in pyarrow) to also add the scalar class. ### Are there any user-facing changes? The example from the issue now works: ``` In [15]: run_ends = [3, 5, 10, 19] ...: values = [1, 2, 1, 3] ...: ree_array = pa.RunEndEncodedArray.from_arrays(run_ends, values) In [16]: ree_array[0] Out[16]: <pyarrow.RunEndEncodedScalar: 1> ``` * Closes: #34686 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>