def get_data(path):
df_list = []
for file in tqdm(os.listdir(path)):##进度条
file_path = os.path.join(path, file)
df = pd.read_csv(file_path)
df_list.append(df)
df = pd.concat(df_list)
return df
TEST_PATH = './data/hy_round1_testA_20200102'
test_df = get_data(TEST_PATH)
test_df.to_csv(path_or_buf="test.csv",index=False)#保存为CSV文件