python
import os
import pandas as pd
#ゲットファイルリスト
path = 'testData/'
files = os.listdir(path)
train_csv = list(filter(lambda x:(x[0:6] == 'train_' and x[-4:] == '.csv'),files))
#ゲットCSVデータ
data_list = []
for fileitem in train_csv:
tmp = pd.read_csv(path + fileitem,header=0)
data_list.append(tmp)
#結合
dataset = pd.concat(data_list,ignore_index = False)