【发布时间】:2017-09-12 05:08:08
【问题描述】:
从此question跟进
像这样旋转后我得到了一个数据框。
AVG GrossProfit AVG PMV Loss% 销售额 ParentAuction Copart IAA Copart IAA Copart IAA Copart IAA 制作 讴歌 112.99 NaN -15.53 NaN 36.46 NaN 96.0 NaN如何将列级别更改为这种格式的列?
ParentAuction Copart IAA AVG GrossProfit AVG PMV 损失百分比销售额 AVG GrossProfit AVG PMV 损失百分比销售额 制作 讴歌 112.99 -15.53 36.46 96.0 NaN NaN NaN NaN【问题讨论】:
标签: python pandas pivot-table levels