I am working on a jupyter notebook right now and I am looking for a way to conditionally color each cell in a pandas dataframe according to its relative value within the column (or alternatively row).
The final output should be a pandas dataframe.
Conceptually it would be like creating a heatmap where the shading is defined independently for each column and is based on the max and min of the column itself.
I have had a look at this and this but in both they create actual plot as output instead of coloring the dataframe cells.