I have a pandas data frame that I am then writing into an Excel sheet:
| Measure | value | lower limit | upper limit |
|---|---|---|---|
| A | 1 | 0.1 | 1.2 |
| B | 2 | 0.5 | 1.5 |
| C | 10 | 1 | 100 |
I would like to color code the column "value" based on the condition that "value" is contained between "lower limit" and "upper limit".
What I have done so far is to create an extra column called "within limits" to check that the condition is true or false, but for this case I can only find solutions in pandas that are color coding the column "within limits" itself, and not the "value" column.
Is there a way to color code based on another column value?
