Feature request: add an optional values parameter to Styler.background_gradient · Issue #22727 · pandas-dev/pandas (original) (raw)

Sometimes we want to apply background_gradient to some columns according to values in another column. There's no easy way to do this currently. It can be made possible by adding an optional values parameter. And when the values parameter is specified, it is used to generate background colors.