I have this DataFrame:
CL1 CL2 CL3 CL4
0 a a b f
1 b y c d
2 c x d s
3 x s x a
4 s dx s s
5 a c d d
6 s dx f d
7 d dc g g
8 f x s t
9 c x a d
10 x y y a
11 c a x y
12 f s d s
13 d d w a
Intention:
- With help Pandas
1- I wanna search and find the similar values between all columns (CL1-CL4) and sort in a new column (SIM).
2- I wanna find the non-similar values between columns and sort in another column (NON-SIM).
What i want
How can i do that? With df.pivot_table
i was not successful.
'g'
not included in the similar list? $\endgroup$