I got dataframe with 3 columns : sku/price_1/price_2 How to color a cell in price_2 if it is less than in price_1? what i already tried:
def highlight_late(s):
color = ['background-color: red' if s['price_2'] < s['price_1'] else
'background-color: white' for s_ in s ]
return color
df = myDataframe.style.apply(highlight_late,axis=1)
i also try with subset='price_2' but it didnt work, returns me keyerror 'price_1' but if i not use subset, its works but colorize all row. and how to color in google sheet with pygsheets ? TABLE