I have CSV file with multiple columns and I am searching some string in column 5 and highlighting the row for diffrent string. As of now I am able to use just two colours but I want to use more colors for more string into it. Example for
x['4']="abc" --->I want to use yellow color
x['4']="xyz" --->I want to use grey color
x['4']="pqr" --->I want to use green color
For two color I am using
n = len(df.columns)
df.style.apply(lambda x: ["background-color: red"]*n if x['4']== 'ERROR' else ["background-color: white"]*n, axis = 1)
What changes should we make for multiple colours
