2021-12-10
阅读量:
2772
python导入导出Excel文件(使用jupyter)
1#导入Excel文件使用 df=pd.read_excel(r"绝对路径)
如果不想用默认的行索引,可以加参数index_col中某一列的值作为行索引
2#导出Excel文件使用df.to_excel(r"绝对路径"),取一个excel文件名,会自动生成这个Excel文件,若绝对路径已经有这个Excel文件名的话,会自动覆盖原文件






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论