Skip to content

REF: remove Block.concat_same_type #33486

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 43 commits into from
Apr 15, 2020

Conversation

jbrockmendel
Copy link
Member

All the relevant logic lives in concat_compat already.

jbrockmendel and others added 30 commits March 29, 2020 11:56
vals = [ju.block.values for ju in join_units]

if not blk.is_extension:
values = concat_compat(vals, axis=blk.ndim - 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, doesn't concat_compat already handle this? why do you need cases here?

Copy link
Member Author

Choose a reason for hiding this comment

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

why do you need cases here?

I hope you're sitting down because this may come as a shock: because EAs dont support 2D.

Copy link
Contributor

Choose a reason for hiding this comment

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

i get that
but the cases are all the same

Copy link
Member Author

Choose a reason for hiding this comment

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

The last one is not, we dont pass axis

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, but you still don't need line 70 at all

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, will update

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+green

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Apr 12, 2020
@jreback jreback added this to the 1.1 milestone Apr 12, 2020
@jreback jreback merged commit 2a4ec05 into pandas-dev:master Apr 15, 2020
@jbrockmendel jbrockmendel deleted the no-data-concat-3 branch April 15, 2020 19:34
CloseChoice pushed a commit to CloseChoice/pandas that referenced this pull request Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.