Let's say I have a dataframe below.
a b c
0 one two three
1 three one two
I want to make row 0 and 1 to be treated as a same list? or something, since both row contains 'one', 'two', 'three' even though the order is different.
Should I make a new column which stores all the string from a, b, c column such as,
a b c d
0 one two three one two three
1 three one two three one two
and then compare row 0 and 1 of column d?
After this, I want to do .groupby('d') and as a result, 'one two three' and 'three one two' must not be seperated.
I can't think of a way to solve this and need help.