Pandas 重塑(stack)和轴向旋转(pivot)的实现 importnumpyasnpimportpandasaspdfrompandasimportSeries,DataFrame一、重塑stack:将数据的列索引旋转为行索引 轴向旋转