Format the color of a cell in a pandas dataframe according to multiple conditions

前端 未结 2 1696
攒了一身酷
攒了一身酷 2020-12-03 16:18

I am trying to format the color of a cell of an specific column in a data frame, but I can\'t manage to do it according to multiple conditions.

This is my dataframe

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 17:25

    The way it is written, no cells would be painted red. You should change the order, letting the condition to paint red before the one to paint yellow.

提交回复
热议问题