-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
MultiIndex is_monotonic_decreasing is incorrect #16554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
only implemented is_monotonic_increasing. It needs the same impl. (but its not used anywhere ATM). |
|
Can we define
not sure if that will work. Looks like |
I don't think that will work in general. You can't get monotonic decreasing from monotonic increasing in all scenarios, unless there's an assumption that the data is monotonic/sorted in some regard. For example, a MultiIndex generated by I think you can implement this similar to |
Or just isn't implemented properly yet?
This MultiIndex is identical on the second level, so its
is_monotonic_decreasing
should be the same asget_level_values(0).is_monotonic_decreasing
(True)They should both return True.
The text was updated successfully, but these errors were encountered: