📜  更改列顺序数据框python代码示例

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

代码示例4
cols = df.columns.tolist()
# Rearrange the list any way you want
cols = cols[-1:] + cols[:-1]
df = df[cols]