import pandas as pd
dataframe = []
dates = ["1.xlsx","2.xlsx","3.xlsx"]
for date in dates:
dataframe.append(pd.read_excel(date))
df = pd.concat(dataframe)
df.to_excel('merge.xlsx', index=False)
测试文件:
测试文件下载地址(免费下载使用)
2024-03-17 09:27:04
import pandas as pd
dataframe = []
dates = ["1.xlsx","2.xlsx","3.xlsx"]
for date in dates:
dataframe.append(pd.read_excel(date))
df = pd.concat(dataframe)
df.to_excel('merge.xlsx', index=False)
测试文件:
测试文件下载地址(免费下载使用)