下面是表模式 客户 ------------------------------
id name
------------------------------
1 joe
4 jane
产品 ------------------------------
id title
------------------------------
1 iphone
2 ipad
custo
需要将两列的唯一组合添加到熊猫中同一数据帧的帮助。 我想要那个“nos”列。 Input:
id acct_nos name
1 1a one
1 1a two
2 2b three
3 3a four
3 3b five
3 3c six
3 3d seven
这里是输出欲: Output:
id acct_nos nos name
1 1a 1 one