find the rows have two same column values and different other columns pandas code example
Example: python pandas check if two columns are equal
df = pd.DataFrame([[2, 2], [3, 6]], columns = ["col1", "col2"])
df = pd.DataFrame([[2, 2], [3, 6]], columns = ["col1", "col2"])