Highlight Rows with 2 conditions in a dataframe

问题描述 投票:0回答:0

我需要用红色突出显示超过 4 天的运输货物,并用绿色标记所有已交付的货物(无论运输时间如何)。默认情况下,其余数据应保持白色。我刚开始使用 python,我需要一些帮助来解决这个问题。

my data looks like this

我尝试了一些随机公式,但没有一个适用于我的情况。所以如果有人可以提供帮助,我会很高兴。

python pandas highlight
© www.soinside.com 2019 - 2024. All rights reserved.