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

Filter by extension

8000
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
Update
  • Loading branch information
phofl committed Nov 30, 2023
commit 26f8b3862fea8f736c8556585071795bd5c16ba3
2 changes: 0 additions & 2 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,8 +1826,6 @@ def map_array(
return arr.copy()

# we must convert to python types
if isinstance(arr.dtype, BaseMaskedDtype):
arr = arr.to_numpy() # type: ignore[union-attr]
values = arr.astype(object, copy=False)
if na_action is None:
return lib.map_infer(values, mapper, convert=convert)
Expand Down
0