📜  pandas 切换列级别 - Python 代码示例

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

代码示例3
df = df.reorder_levels(column_names, axis)
# axis => {0 or ‘index’, 1 or ‘columns’}, default 0
# column_names => List representing new level order. Reference level by number (position) or by key (label).