I want to make a summary dataframe which highlights my experiments mean and std results, I would like to turn it into a styler and highlight the best values, but I don't know how I can succeed in doing so.
For instance my input data is:
mean = pd.DataFrame({'val': [1, 2, 3]})
std = pd.DataFrame({'val': [.1, .2, .1]})
And the result I would like to have would be something like this :
res = pd.DataFrame({'val': ['1$\pm$.1', '2$\pm$.2','3$\pm$.3']})
I could just turn my dataframes' cells to str and simply add them together but the thing is that I want to highlight the cells with either the highest mean value or either the lowest std one (or even other rules for which I usually define a custom highlight function), which is not possible in a straightforward fashion using strings.
I use stylers in my other tables as I input them directly into a tex document, but here I really don't know how to proceed.