You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theGT.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')
wherelevels
would be the same dimensionality asdf
and hold 0..1 values.The text was updated successfully, but these errors were encountered: