提交 7c6db46b 编写于 作者: qq_39242137's avatar qq_39242137

生产代码片段

上级 2eebcf6c
print('欢迎来到 InsCode')
\ No newline at end of file
import pandas as pd
# 读取多个Excel表格
df1 = pd.read_excel('file1.xlsx')
df2 = pd.read_excel('file2.xlsx')
df3 = pd.read_excel('file3.xlsx')
# 合并数据
merged_df = pd.concat([df1, df2, df3])
# 保存到新的Excel表格
merged_df.to_excel('merged_file.xlsx', index=False)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册