pandas数据表表头变更怎么写脚本

可以使用Pandas库中的rename函数来调整数据表表头,具体写法如下:df.rename(columns={'oldName1': 'newName1', 'oldName2': 'newName2'}, inplace=True)

猜你喜欢

转载自blog.csdn.net/weixin_35750953/article/details/129523225