两列互换

代码:

import pandas as pd

data = pd.read_csv("./test.csv", error_bad_lines=False, encoding="utf-8")

两列互换

 

 

 

data = data.loc[:, ["Topology","Batch Size","KPI","FP32"]]

两列互换

 

 

 

保存数据

data.to_csv('test.csv', index=False, encoding='utf-8')

 

上一篇:解决idea控制台乱码


下一篇:Http上传数据到接口get/post