回答編集履歴
1
修正
test
CHANGED
@@ -20,16 +20,16 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
data_merge = pd.merge(name, addres, on='unified_id', how='inner')
|
23
|
+
data_merge = pd.merge(name, addres, on=['unified_id', 'last_name'], how='inner')
|
24
24
|
|
25
25
|
print(data_merge)
|
26
26
|
|
27
|
-
# unified_id last_name
|
27
|
+
# unified_id last_name first_name addres
|
28
28
|
|
29
|
-
# 0 1
|
29
|
+
# 0 1 suzuki tarou saitama
|
30
30
|
|
31
|
-
# 1 3
|
31
|
+
# 1 3 nakamura hanako tokyo
|
32
32
|
|
33
|
-
# 2 5
|
33
|
+
# 2 5 sato yuuki kobe
|
34
34
|
|
35
35
|
```
|