-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: concat bool+int with ArrayManager #42576
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
jbrockmendel
commented
Jul 16, 2021
- closes #xxxx
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
# GH#42092 | ||
target_dtype = np.find_common_type(list(dtypes), []) | ||
else: | ||
target_dtype = find_common_type([arr.dtype for arr in to_concat_no_proxy]) | ||
|
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.
maybe should just modify fond_common_dtyoe itself to handle both cases
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.
find_common_type has the desired long-term behavior; we need to deprecate the behavior here to match in the future
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.
i don't understand your comment
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.
find_common_type is used elsewhere, and we don't want to change the behavior of the other usages. so find_common_type shouldn't be changed.
This is fixing a regression #42092. Eventually we want to change the behavior back to what it is in master, but doing that right will require a deprecation cycle.
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.
kk got it.
(this is whats needed to get the CI back to green) |
# GH#42092 | ||
target_dtype = np.find_common_type(list(dtypes), []) | ||
else: | ||
target_dtype = find_common_type([arr.dtype for arr in to_concat_no_proxy]) | ||
|
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.
kk got it.
@meeseeksdev backport 1.3.x |
Something went wrong ... Please have a look at my logs. |
BUG: concat bool+int with ArrayManager (pandas-dev#42576)
Co-authored-by: jbrockmendel <[email protected]>