8000 Convert to compatible NumPy dtype for MaskedArray to_numpy by phofl · Pull Request #55058 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Convert to compatible NumPy dtype for MaskedArray to_numpy #55058

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

Merged
merged 18 commits into from
Dec 1, 2023
Merged
Changes from 1 commit
Commits
File filter
8000

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into to_numpy_ea
# Conflicts:
#	pandas/tests/base/test_conversion.py
#	pandas/tests/frame/test_repr.py
  • Loading branch information
phofl committed Nov 16, 2023
commit 6223938a5d36d96a61af3c54bed059c9725e222d
4 changes: 4 additions & 0 deletions pandas/tests/base/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ def test_to_numpy(arr, expected, index_or_series_or_array, request):
with tm.assert_produces_warning(None):
thing = box(arr)

if arr.dtype.name == "int64" and box is pd.array:
mark = pytest.mark.xfail(reason="thing is Int64 and to_numpy() returns object")
request.applymarker(mark)

result = thing.to_numpy()
tm.assert_numpy_array_equal(result, expected)

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0