質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,7 +94,9 @@
|
|
94
94
|
|
95
95
|
for i in range(res.shape[1]-1):
|
96
96
|
|
97
|
-
|
97
|
+
res['label'] = ['{0} {1}'.format(v1, v2) if v2 != 'NaN' else v1 for v1, v2 in zip(res['label'], res.iloc[:, i+1])]
|
98
|
+
|
99
|
+
|
98
100
|
|
99
101
|
res[['label']]
|
100
102
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -120,6 +120,8 @@
|
|
120
120
|
|
121
121
|
res2.to_csv('sample.txt', sep=' ', index=False, header=False)
|
122
122
|
|
123
|
+
# 追記:ここでのsepの設定は不要
|
124
|
+
|
123
125
|
|
124
126
|
|
125
127
|
# <result>
|