8000 BUG: Fix concat of frames with extension types (no reindexed columns) by jorisvandenbossche · Pull Request #34339 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix concat of frames with extension types (no reindexed columns) #34339

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix concat of DatetimeBlock / DatetimeTZBlock to not take 'uniform' path
  • Loading branch information
jorisvandenbossche committed May 23, 2020
commit 58226948ec6550dc021c1b06a81f8157e7c8d696
2 changes: 1 addition & 1 deletion 8000 pandas/core/internals/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def _is_uniform_join_units(join_units: List[JoinUnit]) -> bool:
# cannot necessarily join
return (
# all blocks need to have the same type
all(isinstance(ju.block, type(join_units[0].block)) for ju in join_units)
all(type(ju.block) is type(join_units[0].block) for ju in join_units)
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 change is to ensure DatetimeBlock and DatetimeTZBlock don't incorrectly take this "uniform join units" code path

and # noqa
# no blocks that would get missing values (can lead to type upcasts)
# unless we're an extension dtype.
Expand Down
0