posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.87k stars 69 forks source link

epic: Implement `cols_merge*()` family of methods #171

Open machow opened 9 months ago

machow commented 9 months ago

cols_merge() and friends let you combine the content of two columns into one, with special templating syntax. E.g. if I have a mean column with value "X" and variance columns "Y.Z", then I might want to get X (Y.Z).

https://gt.rstudio.com/reference/cols_merge.html

machow commented 5 months ago

Combining title, original name, and link

Note that when original name is NA, (<original_name>) is excluded.

image

Additional info in parentheses (e.g. stddev), ranges, etc..

image

More parentheses

image image