假设我有两个数据帧df_1:
name id x1 x2
Juan D 1 450 2
Jose M 3 300 3
Pedro D 4 500 7
Mateo M 9 200 0
和df_2:
name_1 x3 x4
Juan D M zenfone
Pedro D M Asus
Mateo M M Apple
我想通过匹配名称来合并列以获取此信息:
name id x1 x2 x3 x4
Juan D 1 450 2 M zenfone
Pedro D 4 500 4 M Asus
Mateo M 9 200 9 M Apple