Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/Feature request #548

Open
virtualfunction opened this issue Dec 2, 2024 · 0 comments
Open

Question/Feature request #548

virtualfunction opened this issue Dec 2, 2024 · 0 comments

Comments

@virtualfunction
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant