Skip to content

REF: avoid object-dtype casting in Block.replace #40082

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 3 commits into from
Feb 26, 2021

Conversation

jbrockmendel
Copy link
Member

ATM we do self.astype(object), where the idiomatic thing to do is self.coerce_to_target_dtype(value), which in some cases means we dont need to cast on the back-end

@jreback jreback added the Dtype Conversions Unexpected or buggy dtype conversions label Feb 26, 2021
@jreback jreback added this to the 1.3 milestone Feb 26, 2021
@jreback
Copy link
Contributor

jreback commented Feb 26, 2021

is this user visible? if so can you add a whatsnew note, otherwise lgtm.

@jbrockmendel
Copy link
Member Author

is this user visible?

no, just more idiomatic

@jreback jreback merged commit f066cda into pandas-dev:master Feb 26, 2021
@jbrockmendel jbrockmendel deleted the ref-downcast branch February 26, 2021 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants