批量excel转csv
使用Python的pandas库将excel批量转为csv格式
excel文件都放在./数据样例目录下,输出文件在./csv目录下
代码如下
# 导入pandas
import pandas as pd
import os
# 建立单个文件的excel转换成csv函数,file 是excel文件名,to_file 是csv文件名。
def excel_to_csv(file, to_fil...
原创
2019-03-15 15:41:32 ·
1785 阅读 ·
0 评论