Commits


Igor Izvekov authored and GitHub committed e5de6a59f41
GH-36168: [C++][Python] Support halffloat for Arrow list to pandas (#35944) ### Rationale for this change When we translate `float16` from `pyarrow` to `pandas`, no error occurs: ``` >>> df = pd.DataFrame({"a": [np.float16(1), np.float16(2), np.float16(3)]}) >>> table = pa.Table.from_pandas(df) >>> df_new = table.to_pandas() ``` But, when we use list: ``` >>> df = pd.DataFrame({"a": [[np.float16(1)], [np.float16(2)], [np.float16(3)]]}) >>> table = pa.Table.from_pandas(df) >>> df_new = table.to_pandas() pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: halffloat ``` ### What changes are included in this PR? ### Are these changes tested? Yes ### Are there any user-facing changes? Yes * Closes: #36168 Authored-by: izveigor <izveigor@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>