import pandas as pd
df1 = pd.DataFrame(index=[1,2,3,4])
df1['A'] = [1,2,5,4]
df1['B'] = [5,6,9,8]
df1['C'] = [9,10,1,12]
>>> df1
A B C
1 1 5 9
2 2 6 10
3 5 9 1
4 4 8 12
I want to compare rows of df1 and get a result of row1(1,5,9) == row3(5,9,1).
It means I care only contained items of row and ignore order of items of row.