jorisvandenbossche commented on issue #34701: URL: https://github.com/apache/arrow/issues/34701#issuecomment-1578938916
Example of the current behaviour for conversion to numpy/pandas: ``` In [36]: arr = pc.run_end_encode([1, 2, 2, 3, 3, 3]) In [37]: arr.to_numpy() --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) Cell In [37], line 1 ----> 1 arr.to_numpy() File pyarrow/array.pxi:1530, in pyarrow.lib.Array.to_numpy() File pyarrow/error.pxi:121, in pyarrow.lib.check_status() ArrowNotImplementedError: No known equivalent Pandas block for Arrow data of type run_end_encoded<run_ends: int32, values: int64> is known. In [38]: arr.to_pandas() --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) Cell In [38], line 1 ----> 1 arr.to_pandas() File pyarrow/array.pxi:855, in pyarrow.lib._PandasConvertible.to_pandas() File pyarrow/array.pxi:1478, in pyarrow.lib.Array._to_pandas() File pyarrow/array.pxi:1682, in pyarrow.lib._array_like_to_pandas() File pyarrow/error.pxi:121, in pyarrow.lib.check_status() ArrowNotImplementedError: No known equivalent Pandas block for Arrow data of type run_end_encoded<run_ends: int32, values: int64> is known. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
