pyhton3 文件夹下的所有csv文件合并成一个csv文件
import os
import pandas as pd
import glob
cvs_list=glob.glob('/Users/test/csv/*.csv')
for i in cvs_list:
fr = open(i,'rb').read()
with open('result.csv','ab') as f:
f.write(fr)
import os
import pandas as pd
import glob
cvs_list=glob.glob('/Users/test/csv/*.csv')
for i in cvs_list:
fr = open(i,'rb').read()
with open('result.csv','ab') as f:
f.write(fr)