-
-
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
REGR: Fix to_numpy conversion for arrow ea with float dtype given #57233
Conversation
This should fix #57093 as well. I started something similar in #57170. Do you want to copy the test from #57170 into this PR and I'll close mine? you might also want to include the
|
elif dtype is not None: | ||
dtype = np.dtype(dtype) | ||
if na_value is lib.no_default and hasna and dtype.kind == "f": | ||
na_value = np.nan | ||
dtype_given = True | ||
else: | ||
dtype_given = True |
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.
Do you think it is better if we write from two blocks to single block ?
else:
if dtype is not None:
dtype = np.dtype(dtype)
if na_value is lib.no_default and hasna and dtype.kind == "f":
na_value = np.nan
dtype_given = True
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.
no I prefer this
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.
lgtm
… ea with float dtype given
Does this address #57233 (comment) as well? |
… arrow ea with float dtype given) (#57294) Backport PR #57233: REGR: Fix to_numpy conversion for arrow ea with float dtype given Co-authored-by: Patrick Hoefler <[email protected]>
Yikes I missed that comment, will follow up |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.xref #57121