📜  pandas 按名称重新排序列 - Python 代码示例

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

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