79567499

Date: 2025-04-10 20:11:03
Score: 0.5
Natty:
Report link

An easier way is to use the gmap parameter of background_gradient() with the absolute values of the column of interest.

df.style.background_gradient(
    subset = ['D/D Change'],
    cmap='RdYlGn',
    gmap = abs(df['D/D Change'])
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PJ_