Skip to content

Remove convert_dtype from Series.apply #57369

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 1 commit into from
Feb 12, 2024

Conversation

phofl
Copy link
Member

@phofl phofl commented Feb 11, 2024

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@phofl phofl added this to the 3.0 milestone Feb 11, 2024
@@ -1707,8 +1703,6 @@ def map_array(
# we must convert to python types
values = arr.astype(object, copy=False)
if na_action is None:
return lib.map_infer(values, mapper, convert=convert)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can convert be removed from map_infer now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no we are setting this to false in other use-cases

return lib.map_infer_mask(
values, mapper, mask=isna(values).view(np.uint8), convert=convert
)
return lib.map_infer_mask(values, mapper, mask=isna(values).view(np.uint8))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can convert be removed from map_infer_mask now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@mroeschke mroeschke merged commit 632a41f into pandas-dev:main Feb 12, 2024
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the depr_convert_dtype branch February 12, 2024 17:57
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants