2017-12-27 10 views

答えて

1

私は自分で考え出しました。

path = r'C:/MY_FOLDER/WPP/December work/AM WPP ACCESS SOURCES/03-Cluster 3 OPCOs RVtool Reports - NEW/Y&R/Dec 2017' # use your path 
allFiles = glob.glob(path + "/*.xlsx") 
frame = pd.DataFrame() 
list_ = [] 
for file_ in allFiles: 
    df = pd.read_excel(file_,sheetname = 'vinf') 
    list_.append(df) 
frame = pd.concat(list_) 

frame.to_excel('C:/MY_FOLDER/WPP/December work/AM WPP ACCESS SOURCES/03-Cluster 3 OPCOs RVtool Reports - NEW/Y&R/FINAL_OM_XLSX.xlsx',index = False) 

おかげ

関連する問題