Pandas - Sorting a dataframe by using datetimeindex

前端 未结 1 766
野性不改
野性不改 2021-01-04 03:06

The following is my dataframe which holds values from multiple Excel files. I wanted to do a time series analysis, so I made the index as datetimeindex. But my

1条回答
  •  旧巷少年郎
    2021-01-04 03:56

    I think you need sort_index:

    all_data = all_data.sort_index()
    

    0 讨论(0)
提交回复
热议问题