Skip to content Skip to sidebar Skip to footer

Sort A Pandas Datetime Index

I have a pandas datetime index that I construct. It may be that through the construction process that the individual members are not in order. I want to sort the index. Is there

Solution 1:

try

tseries.order()

If you work with a DataFrame, the term is called sort again, i.e. .sort() and .sort_index()

Post a Comment for "Sort A Pandas Datetime Index"