Apply a color gradient to numeric columns in a GT object.
The gt_hulk_col_numeric() function takes an existing GT object and applies a color gradient to the background of specified numeric columns, based on their values. This is useful for visually emphasizing the distribution or magnitude of numeric data within a table.
Parameters
gt:GT
An existing GT object.
columns:SelectExpr=None
The columns to target. Can be a single column name or a list of column names. If None, the color gradient is applied to all columns.
palette:str | list[str] | None='PRGn'
The color palette to use for the gradient. Can be a string referencing a palette name or a list of color hex codes. Defaults to the "PRGn" palette from the ColorBrewer package.