Skip to content

Commit 3b39ff5

Browse files
committed
Moved check_order to end of param list for back compat
1 parent ddc773b commit 3b39ff5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/_testing.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@ def assert_index_equal(
667667
check_less_precise: Union[bool, int] = no_default,
668668
check_exact: bool = True,
669669
check_categorical: bool = True,
670-
check_order: bool = True,
671670
rtol: float = 1.0e-5,
672671
atol: float = 1.0e-8,
673672
obj: str = "Index",
673+
check_order: bool = True,
674674
) -> None:
675675
"""
676676
Check that left and right Index are equal.
@@ -697,10 +697,6 @@ def assert_index_equal(
697697
Whether to compare number exactly.
698698
check_categorical : bool, default True
699699
Whether to compare internal Categorical exactly.
700-
check_order : bool, default True
701-
Whether to compare the order of index entries as well as their values.
702-
If True, both indexes must contain the same elements, in the same order.
703-
If False, both indexes must contain the same elements, but in any order.
704700
rtol : float, default 1e-5
705701
Relative tolerance. Only used when check_exact is False.
706702
@@ -712,6 +708,12 @@ def assert_index_equal(
712708
obj : str, default 'Index'
713709
Specify object name being compared, internally used to show appropriate
714710
assertion message.
711+
check_order : bool, default True
712+
Whether to compare the order of index entries as well as their values.
713+
If True, both indexes must contain the same elements, in the same order.
714+
If False, both indexes must contain the same elements, but in any order.
715+
716+
.. versionadded:: 1.2.0
715717
"""
716718
__tracebackhide__ = True
717719

0 commit comments

Comments
 (0)