Skip to content
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

Bug in DataFrame.replace casts columns to object dtype if items in to_replace not in values #34048

Merged
merged 6 commits into from
May 9, 2020

Conversation

simonjayhawkins
Copy link
Member

@simonjayhawkins simonjayhawkins commented May 7, 2020

@simonjayhawkins simonjayhawkins added Dtype Conversions Unexpected or buggy dtype conversions replace replace method labels May 7, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

why are you reverting things?

@jreback
Copy link
Contributor

jreback commented May 7, 2020

I am ok with reverting things for the 1.0.4 branch but not for master.

@simonjayhawkins simonjayhawkins changed the title Revert "CLN: short-circuit case in Block.replace (#27768)" Bug in DataFrame.replace casts columns to object dtype if items in to_replace not in values May 7, 2020
@jreback jreback added this to the 1.1 milestone May 9, 2020
@jreback jreback merged commit d09f20e into pandas-dev:master May 9, 2020
@jreback
Copy link
Contributor

jreback commented May 9, 2020

thanks @simonjayhawkins

rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
@simonjayhawkins simonjayhawkins deleted the replace-regression branch May 11, 2020 09:26
simonjayhawkins added a commit to simonjayhawkins/pandas that referenced this pull request May 11, 2020
…e casts columns to ``object`` dtype if items in ``to_replace`` not in values)
simonjayhawkins added a commit that referenced this pull request May 14, 2020
…lumns to ``object`` dtype if items in ``to_replace`` not in values) (#34115)
@simonjayhawkins simonjayhawkins modified the milestones: 1.1, 1.0.4 May 26, 2020
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 replace replace method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGR: replace casts columns to object
3 participants