I have 4 columns of string values and I want to visiually compare distinc values in 3 columns to the values in the first columns.
So, if value in column 2, 3 and 4 is not in column 1, I want to color this cell in corresponding column.
I don't know how can it be implemented, as I never worked with pd.DataFrame coloring
Example of dataframe:
d = {'column 1': ['red', 'green', 'blue', 'white', ''],
'column 2': ['red', 'blue', 'white', 'green', 'yellow'],
'column 3': ['blue', 'yellow', 'brown', '', ''],
'column 4': ['red', 'white', 'blue', 'green', '']}
df = pd.DataFrame(data = d)
Here I need to color the following:
in column 2 -- yellow cell
in column 3 -- yellow and brown cells
in column 4 -- nothing
Don't mind empty strings here, in my dataframe they are NaNs

