In the data frame, there is some repeat value in given specific columns So, I want to remove all repeat values
For example,
In col3 if anything available in col2 and col1 then it remove from col3. Same now for col2, if any value from col2 is available in col1 then remove from col2
col1 col2 col3 col4 col5
1 12 1 6
2 1 9 1 0
3 1 2
4 9 11 3 10
5 6 4
6 1 3 5
Output
col1 col2 col3 col4 col5
1 12 1 6
2 1 0
3 2
4 9 11 3 10
5 4
6 5
col4 and col5 remain same