Skip to content
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

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Dec 27, 2023

@phofl phofl added the Arrow pyarrow functionality label Dec 27, 2023
@phofl phofl added this to the 2.2 milestone Dec 27, 2023
@phofl phofl requested a review from mroeschke December 27, 2023 21:36
@@ -1320,6 +1321,7 @@ def to_numpy(
copy: bool = False,
na_value: object = lib.no_default,
) -> np.ndarray:
original_na_value = na_value
Copy link
Member

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?

Copy link
Member Author

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

@mroeschke mroeschke merged commit 62dbbe6 into pandas-dev:main Dec 28, 2023
50 checks passed
@mroeschke
Copy link
Member

Thanks @phofl

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Dec 28, 2023
mroeschke pushed a commit that referenced this pull request Dec 28, 2023
…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]>
@phofl phofl deleted the 56267 branch December 28, 2023 15:22
cbpygit pushed a commit to cbpygit/pandas that referenced this pull request Jan 2, 2024
…-dev#56644)

* BUG: Series.to_numpy raising for arrow floats to numpy floats

* Fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants