Consider a dataframe with 2 columns for easiness. The first column is id and it is the key. The second column, named code is not a key but the case of two entries having the same value is very rare.
I want to find the rows having the same code value but of course different id.
How can I do that in Pandas?