回答編集履歴

1

追記

2019/09/01 14:55

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -18,7 +18,9 @@
18
18
 
19
19
  # ...
20
20
 
21
+ lst.extend(dfs) # list of DataFramesなのでextendでlistに結合する。
22
+
21
- lst.append(dfs)
23
+ # 1つしか中身がないことが確実or複数あっても常に先頭のものを取りたいならlst.append(dfs[0])でもいいかも
22
24
 
23
25
  df_result = pd.concat(lst, ignore_index=True)
24
26