How can I check if a Pandas dataframe's index is sorted
How about:
df.index.is_monotonic
I have a vanilla pandas dataframe with an index. I need to check if the index is sorted. Preferably without sorting it again.
e.g. I can test an index to see if it is unique by index.is_unique() is there a similar way for testing sorted?