Skip to content

Commit 450345a

Browse files
committed
fix.wrongly edited
1 parent 890717f commit 450345a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/core/reshape/concat.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,12 @@ def concat(
422422
intersect
423423
or any(not isinstance(index, DatetimeIndex) for index in non_concat_axis)
424424
or all(
425-
prev is curr
426-
for prev, curr in zip(non_concat_axis, non_concat_axis[1:], strict=True)
425+
prev is curr for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
427426
)
428427
or (
429428
all(
430429
prev[-1] <= curr[0] and prev.is_monotonic_increasing
431-
for prev, curr in zip(
432-
non_concat_axis, non_concat_axis[1:], strict=True
433-
)
430+
for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
434431
if not prev.empty and not curr.empty
435432
)
436433
and non_concat_axis[-1].is_monotonic_increasing

0 commit comments

Comments
 (0)