回答編集履歴
1
コメントの指摘事項を反映
answer
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```python
|
2
2
|
- output_df = pd.concat([inputDF1, insert_df], axis = 1)
|
3
|
-
+ output_df =
|
3
|
+
+ output_df = insert_df.combine_first(inputDF1)
|
4
4
|
```
|
5
5
|
|
6
6
|
pd.concatではなく、combine_first を使うとうまくいきそうです。
|