I have a data frame with three colums $A$, $B$ and $C.$ Everything is numeric, columns $A$ and $B$ increase from worse to better while columns $C$ increases from better to worse. I want to colour the cells using a gradient column-wise such that it goes from white to red in the columns $A$ and $B$ but it is reversed in the columns $C.$
In the example below, columns
AandBproduce exactly what I want. Is there a way below to telldfto use thebackground_gradientmethod reversed for the columnsC?
df = pd.DataFrame({"A":[1,2,3], "B":[4,6,10], "C":[1,3,7]})
df.style.background_gradient("Reds")

