【发布时间】:2018-08-15 09:32:34
【问题描述】:
MasterAgreementId MasterAgreementType Data Source Break Type
11000002 ISDA Source System
11000002 ISDA CMRS
11000043 ISDA CMRS
11000049 ISDA Source System
11000049 ISDA CMRS
1451057679 ISDA Source System
我有一个包含这样的数据的数据框。我想使用 MasterAgreementId 作为比较键并希望输出如下:
MasterAgreementId MasterAgreementType Data Source Break Type
11000002 ISDA Source System Identical
11000002 ISDA CMRS Identical
11000043 ISDA CMRS Difference
11000049 ISDA Source System Identical
11000049 ISDA CMRS Identical
1451057679 ISDA Source System Difference
我想在没有迭代的情况下实现这一点。
【问题讨论】:
-
你想和它自己比较一下吗?你是怎么到达
Identical和Difference的? -
到目前为止你尝试过什么?你在用熊猫吗?你能提供一个minimal reproducible example吗?
标签: python