Python 合并多个Excel (表头相同)
Python 合并多个Excel (表头相同)
使用python合并多个表头相同的Excel文件,并输出。
# -*- coding: utf-8 -*-
import os
import pandas as pd
def listdir(path): #传入根目录
file_list = []
for file in os.listdir(path):
file_path = os.path.join(path, file) #获取绝对路径
if os.p
原创
2021-11-25 12:56:46 ·
3044 阅读 ·
0 评论