摘要: 1.读取文件的时候重命名 names = new_col,可以在读取文件的时候,给出新列名。 new_col = ['new1', 'new2',... , 'newn'] pd.read_csv('data', names = new_col, header=0) 2.全部重命名 columns 阅读全文
posted @ 2022-10-02 22:52 商品部-林军 阅读(845) 评论(0) 推荐(0) 编辑