@@ -667,10 +667,10 @@ def assert_index_equal(
667
667
check_less_precise : Union [bool , int ] = no_default ,
668
668
check_exact : bool = True ,
669
669
check_categorical : bool = True ,
670
- check_order : bool = True ,
671
670
rtol : float = 1.0e-5 ,
672
671
atol : float = 1.0e-8 ,
673
672
obj : str = "Index" ,
673
+ check_order : bool = True ,
674
674
) -> None :
675
675
"""
676
676
Check that left and right Index are equal.
@@ -697,10 +697,6 @@ def assert_index_equal(
697
697
Whether to compare number exactly.
698
698
check_categorical : bool, default True
699
699
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.
704
700
rtol : float, default 1e-5
705
701
Relative tolerance. Only used when check_exact is False.
706
702
@@ -712,6 +708,12 @@ def assert_index_equal(
712
708
obj : str, default 'Index'
713
709
Specify object name being compared, internally used to show appropriate
714
710
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
715
717
"""
716
718
__tracebackhide__ = True
717
719
0 commit comments