Great Tables is a Python package for building display tables from Polars, Pandas, or Arrow DataFrames. It mirrors the gt API closely and is designed for use in notebooks and Quarto documents, with options to save table images or export HTML and LaTeX.
What’s covered#
- Introduction – package overview and sample datasets
- Creating a GT Table –
GT(), basic workflow, and Polars style property - Adding Structure –
tab_header(),tab_source_note(), stub and row groups, column spanners - Formatting Data Values –
fmt_number(),fmt_integer(),fmt_percent(),fmt_scientific(),fmt_date(),fmt_time(),fmt_datetime(),fmt_image(),fmt_icon(),fmt_flag() - Colorizing Body Cells –
data_color()with domain, palette, and NA color options - Adding Nanoplots –
fmt_nanoplot()for inline sparklines - Styling the Table –
tab_style()withstyle.fill(),style.text(),style.borders(), andloc.*location helpers - Table-wide options –
tab_options(),opt_stylize(),opt_table_font()

