0

I want to have a yellow background in some certain rows and in those rows I want some text to be red. Here is an example :

enter image description here

So far I am able to achieve yellow background in some certain rows using :

 from StyleFrame import StyleFrame, Styler

 bgStyle = Styler(bg_color='yellow')
 sf = StyleFrame(df)
 sf.apply_style_by_indexes(rowsTocolor, styler_obj=bgStyle, overwrite_default_style=False)

But I cant find a way to color a particular text red in that yellow background row.

So my question is, is it possible to achieve this using StyleFrame? If yes, then how? if not, then which other library should i use?

Anudocs
  • 686
  • 1
  • 13
  • 54

0 Answers0