pandas.DataFrame的pivot()和unstack()实现行转列 示例:有如下表需要进行行转列:代码如下:#-*-coding:utf-8-*-importpandasaspdimportMySQLdbfromwarnings 行转列