How to apply conditional formatting (highlight in yellow if value > 1.), not over the whole table but only these 2 columns:
- "comparisonResult.NoMatch"
- "False"
I can only apply to the whole table.
I have this code:
styled_df = result.loc[:,idx[:,'ComparisonResult.NoMatch']]
.style.apply(lambda x : ['font-weight: bold; background-color: yellow'
if value >= 1 else '' for value in x])
But this basically leaves me with only my ComparisonResult.NoMatch Column as my result.
By the way, I am using Visual Studio Code, but I don't see very rich IntelliSense, for example pressing dot on the "value" field suggests nothing. Is something wrong with my extensions installation?