great-tables
great-tables copied to clipboard
Question/Feature request
I'm trying to move away from Pandas and thus found this project through that process. I'm looking to achieve something like https://pandas.pydata.org/docs/dev/reference/api/pandas.io.formats.style.Styler.background_gradient.html but rather than use a linear pair of values to define the boundary of domain in the GT.data_color call, I'd like to be able to pass in a DataFrame or numpy-like 2D array the same dimensions as the underlying DataFrame which contains values (generally 0 to 1) that indicate the gradient offset for each cell.
Typically in Pandas I would just do something like:
df.style.background_gradient(gmap=levels, cmap='RdYlBu') where levels would be the same dimensionality as df and hold 0..1 values.