How can I check if a Pandas dataframe's index is sorted,all(df.index[:-1] <= df.index[1:])