Skip to content

Feature request: add an optional values parameter to Styler.background_gradient #22727

Closed
@dclong

Description

@dclong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignEnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymapOutput-Formatting__repr__ of pandas objects, to_stringStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions