#python jupyter notebook 合并多个excel表格的代码
```python
import pandas as pd
file1 = pd.read_excel('E:/你的目录名/你的文件名.xlsx')
file2 = pd.read_excel('E:/你的目录名/你的文件名.xlsx')
file3 = pd.read_excel('E:/你的目录名/你的文件名.xlsx')
file4 = pd.read_excel('E:/你的目录名/你的文件名.xlsx')
merge_file = 'E:/你的目录名/你的文件名..xlsx' #最后要合并的excel表格,与其他表格放在同一目录下。
data_merge =pd.concat([file1,file2,file3,file4])#合并文档
data_merge.to_excel(merge_file)#导出合并文档至提前新建的空excel表格中
##注:concat函数一次只能合并10个文档,仅适用于少数文档的合并,或可进行多次操作。