-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: unstack on 'int' dtype prevent fillna to work #38244
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
Conversation
|
||
# 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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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
thanks @simonjayhawkins hopefuly will backport cleanly |
@meeseeksdev backport 1.1.x |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff