Skip to content

REGR: DataFrame.update emits spurious warning about downcasting #57485

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 18, 2024

Conversation

rhshadrach
Copy link
Member

This is meant as a stopgap - I plan to finish up #55634 for 3.0 which will avoid any upcasting/downcasting altogether. However I do no like the idea of that PR being put in a patch version since it is an entirely new approach to DataFrame.update.

I think this can't go in main because the warning and downcasting behavior has already been removed there.

@rhshadrach rhshadrach added Dtype Conversions Unexpected or buggy dtype conversions Regression Functionality that used to work in a prior pandas version DataFrame DataFrame data structure Warnings Warnings that appear or should be added to pandas labels Feb 18, 2024
@rhshadrach rhshadrach added this to the 2.2.2 milestone Feb 18, 2024
@rhshadrach rhshadrach added Bug Conditionals E.g. where, mask, case_when labels Feb 18, 2024
Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

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

fine by me if we fix for 3.0

@phofl phofl modified the milestones: 2.2.2, 2.2.1 Feb 18, 2024
@phofl phofl merged commit b79fe7e into pandas-dev:2.2.x Feb 18, 2024
@phofl
Copy link
Member

phofl commented Feb 18, 2024

thx @rhshadrach

Can you put up a pr with a whatsnew that adds this to main? Only the whatsnew change

rhshadrach added a commit to rhshadrach/pandas that referenced this pull request Feb 19, 2024
@rhshadrach rhshadrach deleted the regr_update_warning branch February 19, 2024 03:16
phofl pushed a commit that referenced this pull request Feb 19, 2024
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
Bug Conditionals E.g. where, mask, case_when DataFrame DataFrame data structure Dtype Conversions Unexpected or buggy dtype conversions Regression Functionality that used to work in a prior pandas version Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants