質問編集履歴
2
文言修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
■求める結果
|
38
38
|
|
39
|
-
BのカラムX
|
39
|
+
BとAのカラムXが一致する場合に、AのカラムYをBのカラムYの値で上書きする
|
40
40
|
|
41
41
|
|X|Y|
|
42
42
|
|
1
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,6 @@
|
|
64
64
|
|
65
65
|
for x in B['X'].unique():
|
66
66
|
|
67
|
-
A[A['X'] == x]['Y'] = B[B['X' == x]['Y']
|
67
|
+
A[A['X'] == x]['Y'] = B[B['X'] == x]['Y']
|
68
68
|
|
69
69
|
```
|