📜  降序 python 数据帧 df - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:05.271000             🧑  作者: Mango

代码示例3
#reverse everything
df = df.sort_index(ascending=False)
df[::-1]

https://stackoverflow.com/questions/20444087/right-way-to-reverse-a-pandas-dataframe