-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: segfault for null dtype in to_numpy #52466
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
Conversation
@@ -1676,6 +1677,15 @@ def test_to_numpy_int_with_na(): | |||
tm.assert_numpy_array_equal(result, expected) | |||
|
|||
|
|||
@pytest.mark.parametrize("na_val, exp", [(lib.no_default, np.nan), (1, 1)]) | |||
def test_to_numpy_null_array(na_val, exp): |
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.
Could you also test the dtype=None, na_value=lib.no_default
case?
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.
done
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
(cherry picked from commit 7974ad0)
…o_numpy) (#52497) * BUG: segfault for null dtype in to_numpy (#52466) (cherry picked from commit 7974ad0) * Update pandas/core/arrays/arrow/array.py * Update pandas/core/arrays/arrow/array.py --------- Co-authored-by: Matthew Roeschke <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.