回答編集履歴

1

修正

2020/10/11 12:46

投稿

meg_
meg_

スコア10760

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_x first_name last_name_y addres
27
+ # unified_id last_name first_name addres
28
28
 
29
- # 0 1 suzuki tarou suzuki saitama
29
+ # 0 1 suzuki tarou saitama
30
30
 
31
- # 1 3 nakamura hanako nakamura tokyo
31
+ # 1 3 nakamura hanako tokyo
32
32
 
33
- # 2 5 sato yuuki sato kobe
33
+ # 2 5 sato yuuki kobe
34
34
 
35
35
  ```