panda保存文件时、解决多于的索引列

在保存文件的时候、index选择为false

df.to_csv('bear.csv', mode='w', index=False)

posted @ 2022-09-16 22:36  自然对数  阅读(23)  评论(0)    收藏  举报