質問編集履歴
1
試したコードを入力
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -16,9 +16,16 @@
|
|
|
16
16
|
|
|
17
17
|
### 該当のソースコード
|
|
18
18
|
|
|
19
|
+
import numpy as np
|
|
20
|
+
import pandas as pd
|
|
19
|
-
|
|
21
|
+
import glob
|
|
22
|
+
file_list=glob.glob("data/*.xlsx")
|
|
20
|
-
|
|
23
|
+
df=pd.DataFrame()
|
|
21
|
-
|
|
24
|
+
for file in file_list:
|
|
25
|
+
df2=pd.read_excel(file,parse_dates=True,index_col=0)
|
|
26
|
+
df2=df2.replace(np.nan,' ',regex=True)
|
|
27
|
+
df=pd.concat([df,df2])
|
|
28
|
+
df.to_excel('結合.xlsx')
|
|
22
29
|
|
|
23
30
|
### 試したこと
|
|
24
31
|
|