在最后设置参数为: index=None
原:
df.to_csv(‘df.csv’, encoding=‘GBK’)
去索引后:
df.to_csv(‘df.csv’, encoding=‘GBK’, index=None)
03-31
4586
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交