MultiIndex.is_monotonic_increasing
See original GitHub issueThis does not seem to be documented anywhere. For MultiIndex, how is .is_monotonic_increasing
different from .is_lexsorted
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
pandas.MultiIndex.is_monotonic_increasing
MultiIndex.is_monotonic_increasing¶. MultiIndex. is_monotonic_increasing ¶. return if the index is monotonic increasing (only equal or increasing) values.
Read more >pandas/multi.py at main - GitHub
This class manages a MultiIndex by mapping label combinations to positive. integers. ... monotonic decreasing if and only if reverse is monotonic increasing....
Read more >pandas.Index — pandas 1.0.0rc0+132.ga4b2c8db9 ...
Return if the index is monotonic increasing (only equal or increasing) values. is_unique. Return if the index has unique values.
Read more >How can I check if a Pandas dataframe's index is sorted
Just for the sake of completeness, this would be the procedure to check whether the dataframe index is monotonic increasing and also unique, ......
Read more >Working with MultiIndex in pandas DataFrame
Create MultiIndex pandas DataFrame (Multi level Index). A multi-level index DataFrame is a type of DataFrame that contains multiple level or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
By looking at the source code, that seems to be the case.
If I’ve understood
is_lexsorted
andsortlevel
correctly, I agree.Might want to keep an eye on the thread in #32312
Given the bug you uncovered in #32259, at the moment I’d say it’s more accurate 😃