dataframe reverse row order by timestamp index code example Example: df invert sort index data.iloc[::-1]