Skip to content

Automatic PR for 1691c9e3-6c6e-42e5-a6a7-ea35961927a7 #62

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

Open
wants to merge 1 commit into
base: 1691c9e3-6c6e-42e5-a6a7-ea35961927a7-base
Choose a base branch
from
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)
)
)