使用Python报告excel

问题描述 投票:0回答:1

我是python的新手,我有一个文件夹,其中包含8个不同的Excel文件,我想在其中读取文件并将其写入并组合成一个新的工作簿,也有一个新的工作簿,其中有两个不同的工作表会根据名称拆分文件。档名:True Reported.xls,False Reported.xls,True Not Reported.xls,False Not Reported.xls等,因此我想将同一工作表中的所有Reported和另一个工作表中的Not Not Reported合并。请帮助

python excel split report filenames
1个回答
0
投票
您可以使用openpyxl库,轻松完成此操作。这是食谱:https://realpython.com/openpyxl-excel-spreadsheets-python/
© www.soinside.com 2019 - 2024. All rights reserved.