我有两个数据帧Df1和Df2。
Df1
ID Name
A132 AB Investment fund
A430 Micheal Business Unit
A203 Baja Finance
A101 Motocorp solution pvt ltd
A037 Dojas Corp
Df2
ID Name
A037 Dojas Corp ltd
A530 Jack Finance Company
A101 Motocorp pvt ltd
A132 AB Investment fund comp
A812 J K Solutions
我想将Df1 ['ID']与Df2 ['ID']映射,这两个记录的两个数据帧中常见的ID都会创建另一个数据帧Df3,如下所示:
Df3
ID Df1['Name'] Df2['Name']
A132 AB Investment fund AB Investment fund comp
A101 Motocorp solution pvt ltd Motocorp pvt ltd
A037 Dojas Corp Dojas Corp ltd