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

REGR: unstack on 'int' dtype prevent fillna to work #38244

Merged
merged 2 commits into from Dec 2, 2020

Conversation

simonjayhawkins
Copy link
Member

@simonjayhawkins simonjayhawkins added Regression Functionality that used to work in a prior pandas version Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Dec 2, 2020
@simonjayhawkins simonjayhawkins added this to the 1.1.5 milestone Dec 2, 2020

# This would raise `ValueError: Cannot convert non-finite values (NA or inf)
# to integer` if the fillna operation above fails
result[("is_", "ca")] = result[("is_", "ca")].astype("uint8")
Copy link
Member Author

Choose a reason for hiding this comment

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

This is from the op. but could do a explicit assert_frame_equal instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah pls construct an expected frame and compare

Copy link
Member Author

Choose a reason for hiding this comment

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

updated


# This would raise `ValueError: Cannot convert non-finite values (NA or inf)
# to integer` if the fillna operation above fails
result[("is_", "ca")] = result[("is_", "ca")].astype("uint8")
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah pls construct an expected frame and compare

@jreback jreback merged commit cb04ad7 into pandas-dev:master Dec 2, 2020
@jreback
Copy link
Contributor

jreback commented Dec 2, 2020

thanks @simonjayhawkins hopefuly will backport cleanly

@simonjayhawkins simonjayhawkins deleted the unstack-regression branch December 3, 2020 10:58
@simonjayhawkins
Copy link
Member Author

@meeseeksdev backport 1.1.x

@lumberbot-app

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Functionality that used to work in a prior pandas version Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGR: unstack on 'int' dtype prevent fillna to work
2 participants