Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions pandas/core/reshape/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,17 @@ def concat(
intersect
or any(not isinstance(index, DatetimeIndex) for index in non_concat_axis)
or all(
prev is curr for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
prev is curr
for prev, curr in zip(
non_concat_axis, non_concat_axis[1:], strict=False
)
)
or (
all(
prev[-1] <= curr[0] and prev.is_monotonic_increasing
for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
for prev, curr in zip(
non_concat_axis, non_concat_axis[1:], strict=False
)
if not prev.empty and not curr.empty
)
and non_concat_axis[-1].is_monotonic_increasing
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ exclude = [
"pandas/core/groupby/grouper.py" = ["B905"]
"pandas/core/groupby/ops.py" = ["B905"]
"pandas/core/methods/to_dict.py" = ["B905"]
"pandas/core/reshape/concat.py" = ["B905"]
"pandas/core/reshape/encoding.py" = ["B905"]
"pandas/core/reshape/melt.py" = ["B905"]
"pandas/core/reshape/merge.py" = ["B905"]
Expand Down
Loading