import os
import pandas as pd
filepath = '/Users/yt/Desktop/111'
filelist = os.listdir(filepath)
concat_list = []
for file in filelist:
if file.endswith('xlsx') or file.endswith('xls'):
path = f'{filepath}/{file}'
data = pd.read_excel(path, dtype=str)
concat_list+=list(data.values)
df = pd.DataFrame(concat_list)
df.to_excel('/Users/yt/Desktop/111.xlsx', index=False)
11-02
4694
12-22
1807
12-22
10-06
6115