You can create list of DataFrame
s first and then pass to concat
:
dfs=[]
for file in folder:
dfs.append(pd.read_csv(file, skiprows = 10, usecols = [2,3]))
df = pd.concat(dfs, ignore_index = True)
Solution with list comprehension:
dfs = [pd.read_csv(file, skiprows = 10, usecols = [2,3]) for file in folder]
df = pd.concat(dfs, ignore_index = True)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…