Skip to content

Commit 20fae22

Browse files
author
Marco Gorelli
committed
revert temp change
1 parent 034f784 commit 20fae22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ def is_monotonic_increasing(self) -> bool:
14031403
return if the index is monotonic increasing (only equal or
14041404
increasing) values.
14051405
"""
1406-
if all(self.get_level_values(i).is_monotonic for i in range(self.nlevels)):
1406+
if all(x.is_monotonic for x in self.levels):
14071407
# If each level is sorted, we can operate on the codes directly. GH27495
14081408
return libalgos.is_lexsorted(
14091409
[x.astype("int64", copy=False) for x in self.codes]

0 commit comments

Comments
 (0)