We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ef7fb0 commit 61b87cbCopy full SHA for 61b87cb
pandas/core/internals/concat.py
@@ -443,7 +443,10 @@ def _is_uniform_join_units(join_units: List[JoinUnit]) -> bool:
443
# cannot necessarily join
444
return (
445
# all blocks need to have the same type
446
- all(type(ju.block) is type(join_units[0].block) for ju in join_units)
+ all(
447
+ type(ju.block) is type(join_units[0].block) # noqa: E721
448
+ for ju in join_units
449
+ )
450
and # noqa
451
# no blocks that would get missing values (can lead to type upcasts)
452
# unless we're an extension dtype.
0 commit comments