Skip to content
Open
Changes from all commits
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
11 changes: 1 addition & 10 deletions pandas/core/internals/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ def _concat_homogeneous_fastpath(
"""
# assumes
# all(_is_homogeneous_mgr(mgr, first_dtype) for mgr, _ in in mgrs_indexers)

if all(not indexers for _, indexers in mgrs_indexers):
# https://github.com/pandas-dev/pandas/pull/52685#issuecomment-1523287739
arrs = [mgr.blocks[0].values.T for mgr, _ in mgrs_indexers]
arr = np.concatenate(arrs).T
bp = libinternals.BlockPlacement(slice(shape[0]))
nb = new_block_2d(arr, bp)
return nb

arr = np.empty(shape, dtype=first_dtype)

if first_dtype == np.float64:
Expand Down Expand Up @@ -593,4 +584,4 @@ def _is_uniform_join_units(join_units: list[JoinUnit]) -> bool:
# no blocks that would get missing values (can lead to type upcasts)
# unless we're an extension dtype.
all(not ju.is_na or ju.block.is_extension for ju in join_units)
)
)