现在有多个excel 文件,需要对其进行合并

import pandas as pd

path=''

list1=[]  #save data
data=pd.read_excel(path,dtype=object)  #read excel
list1.append(data)
write = pd.ExcelWriter(path +'.xlsx')
pd.concat(list1).to_excel(write, 'sheet_name', index=False)  # merge data and save excel
write.save()

  

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-12-25
  • 2022-01-02
  • 2022-01-31
  • 2022-12-23
相关资源
相似解决方案