posit-dev / great-tables

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

Add `.cols_align_decimal()` for alignment of numbers to a decimal mark #259

Open rich-iannone opened 3 months ago

rich-iannone commented 3 months ago

Aligning values by the decimal mark is desirable in lots of cases, especially where there are mixed numbers of decimal values shown in a column of numeric values. Not having this available means that numbers can be harder to scan through (even though they are, by default, right aligned in a column).

It can be challenging to do this right, but is possible. The particular challenges are: