Is it possible to add colour to the groupname_col of a tab_stub too? #443
Unanswered
HansMellman
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@HansMellman, maybe try using GT.tab_options like: from great_tables import GT
from great_tables.data import gtcars
gtcars_mini = gtcars.head(5).loc[:, ["mfr", "model", "year"]]
(
GT(gtcars_mini)
.tab_stub(groupname_col="mfr", rowname_col="model")
.tab_options(row_group_background_color="green")
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah awesome, thanks so much - do you know if it's possible to specify an index for the colour? as in, to perhaps have the first 3 rows of the group one colour and the second 3 rows a different colour? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know if it's possible to add colour to the groupname_col of a tab_stub too? I've tried utilising the tab_style on the specified column both before and after using it in the tab_stub but it doesn't apply the colouring - would love to be able to colour those.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions