We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890717f commit 450345aCopy full SHA for 450345a
pandas/core/reshape/concat.py
@@ -422,15 +422,12 @@ def concat(
422
intersect
423
or any(not isinstance(index, DatetimeIndex) for index in non_concat_axis)
424
or all(
425
- prev is curr
426
- for prev, curr in zip(non_concat_axis, non_concat_axis[1:], strict=True)
+ prev is curr for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
427
)
428
or (
429
all(
430
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
- )
+ for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
434
if not prev.empty and not curr.empty
435
436
and non_concat_axis[-1].is_monotonic_increasing
0 commit comments