Open mattharrison opened 7 months ago
Thanks for the report! Result of a git bisect:
commit bc2888d67d008b32c6f4e12af0b50201488e2c94
Author: Luke Manley
Date: Fri Sep 1 12:55:49 2023 -0400
BUG: ArrowExtensionArray.to_numpy avoid object dtype when na_value provided (#54843)
cc @lukemanley #54843
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
I'm trying to run some scikit learn models that impute missing values. The transformers aren't happy with
<NA>
, so I'm trying to convert the pyarrow int columns to numpy float columns and getting this error:Expected Behavior
Conversion to work. (I'm pretty sure this worked in Pandas 2.1).
Installed Versions