path = r'data/level/Event' all_list = os.listdir(path) df1 = pd.DataFrame() for i in all_list: if i.endswith('.csv'): df = pd.read_csv(path + "/" + i) df = df.rename(columns={'名称cn': '地点cn', '名称jp': '地点jp'}) df1 = df1.append(df, ignore_index=True) ...