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 2530335 commit 716820eCopy full SHA for 716820e
pandas/core/indexes/multi.py
@@ -1797,6 +1797,14 @@ def lexsort_depth(self):
1797
return self._lexsort_depth()
1798
1799
def _lexsort_depth(self):
1800
+ """
1801
+ Compute and return the lexsort_depth, the number of levels of the
1802
+ MultiIndex that are sorted lexically
1803
+
1804
+ Returns
1805
+ ------
1806
+ int
1807
1808
int64_codes = [ensure_int64(level_codes) for level_codes in self.codes]
1809
for k in range(self.nlevels, 0, -1):
1810
if libalgos.is_lexsorted(int64_codes[:k]):
0 commit comments