-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Series.to_numpy raising for arrow floats to numpy floats #56644
Conversation
@@ -1320,6 +1321,7 @@ def to_numpy( | |||
copy: bool = False, | |||
na_value: object = lib.no_default, | |||
) -> np.ndarray: | |||
original_na_value = na_value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, shouldn't this case be handled in to_numpy_dtype_inference
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of the function is if no dtype is given, we can extend this, but I don’t know if that’s a good idea
Thanks @phofl |
…floats to numpy floats
…arrow floats to numpy floats) (#56648) Backport PR #56644: BUG: Series.to_numpy raising for arrow floats to numpy floats Co-authored-by: Patrick Hoefler <[email protected]>
…-dev#56644) * BUG: Series.to_numpy raising for arrow floats to numpy floats * Fixup
.interpolate()
Method Incompatible withfloat[pyarrow]
Dtype #56267 (Replace xxxx with the GitHub issue number)doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.