How do I match values in the same column of a dataframe and return a list of two IDs that are in another column, same row?
I am trying to write a code that can match two values that are in the same column, which contains of strings, and returns two values (integers) that are in another column but the same rows as the matching strings.
cid ownerPPNO
810023112 'ca7e0fc4b7f73b7692c762675e3da960'
810023112 'c1af5c8bc5247770d53ae9c61e739f8c'
810033622 '41463f37b4136b8348a8a628e139f619'
810033622 '3f1869c28e007c8d70ed2bfbc45a56cb'
810034882 '457508b0c6dcbee9fc9359ac761209f9'
810037342 'df9dbdd15915be7370aa58facb4b1605'
810037342 'd402e6c7a87ad2c028aa17811fd244ca'
810044292 'c6a5f4bfd2d6e95af4a85b65e11f7652'
810044292 'bf0fdeae633a93e3b33317acb9c45433'
810044292 'a9b34461d4b1aac1e127ba9af32dac88'
810059672 '2bc378d9093368104e2a74baf2eadfe1'
I want to compare the ownerPPNO and return the IDs. The ownerPPNO might occur more than two times