Skip to content

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

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

jbrockmendel
Copy link
Member

  • 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])

Copy link
Contributor

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

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

kk got it.

@lithomas1 lithomas1 added ArrayManager Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jul 17, 2021
@jbrockmendel
Copy link
Member Author

(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])

Copy link
Contributor

Choose a reason for hiding this comment

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

kk got it.

@jreback jreback merged commit edd5af7 into pandas-dev:master Jul 19, 2021
@jreback
Copy link
Contributor

jreback commented Jul 19, 2021

@meeseeksdev backport 1.3.x

@lumberbot-app
Copy link

lumberbot-app bot commented Jul 19, 2021

Something went wrong ... Please have a look at my logs.

sthagen added a commit to sthagen/pandas-dev-pandas that referenced this pull request Jul 19, 2021
BUG: concat bool+int with ArrayManager (pandas-dev#42576)
@jbrockmendel jbrockmendel deleted the bug-am-concat branch July 19, 2021 16:27
simonjayhawkins pushed a commit that referenced this pull request Jul 19, 2021
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants