great_tables
  • Get Started
  • Examples
  • Reference
  • Blog

On this page

  • What’s the presentation about?
  • What’s next?
    • The 2024 Table Contest
    • posit::conf() workshop
  • Extra resources
  • Hope all your tables are great!

PyCon 2024: Making Beautiful, Publication Quality Tables is Possible in 2024

Author

Michael Chow

Published

May 16, 2024

The Great Tables crew is excited to share that we’ll be presenting on tables at PyCon 2024! If you’re around and want to meet, be sure to stop by the Posit Booth, or reach out on linkedin to Rich or Michael!

The talk, Making Beautiful, Publication Quality Tables is Possible in 2024 happened on May 17, 2024. You can watch the recording on YouTube.

In addition to the talk, there are two other events worth mentioning:

  • The 2024 Table Contest
  • Our upcoming table workshop at posit::conf 2024

What’s the presentation about?

Publication quality tables are a critical form of data visualization, that is easy to miss in favor of charts and graphs. We’re excited to focus on how…

  • tables are used in areas like sports and medicine.
  • Great Tables provides a systematic approach to structuring, styling, and formatting tables.
  • nanoplots combine the trend-emphasizing of graphs with the compactness of a table.

Throughout the presentation, we’ll focus on making this example from a fictitious coffee device shop (notebook):

Sales of Coffee Equipment
Product Revenue Profit Monthly Sales
Amount Percent Amount Percent
Grinder $904K 3% $568K 4%
7650521494596613667748765686607594568751
Moka pot $2.05M 7% $181K 1%
6.87K04.73K4.74K4.79K5.51K6.16K6.62K6.87K6.03K5.30K4.88K4.65K6.28K
Cold brew $289K 1% $242K 2%
2.70K02442494389811.77K2.70K2.61K2.35K1.74K896499244
Filter $404K 1% $70.0K 0%
2.74K02.07K1.81K1.84K2.12K2.25K2.63K2.56K2.37K2.16K2.19K2.07K2.74K
Drip machine $2.63M 9% $1.37M 9%
2.58K02.14K1.62K1.97K2.10K2.58K2.46K2.34K2.32K2.05K1.97K1.84K2.33K
AeroPress $2.60M 9% $1.29M 9%
9.27K06.33K5.20K6.37K7.02K7.91K8.70K8.69K7.80K6.83K6.96K6.88K9.27K
Pour over $846K 3% $365K 2%
2.18K01.56K1.29K1.51K1.69K1.94K2.18K2.14K1.86K1.72K1.81K1.60K2.16K
French press $1.11M 4% $748K 5%
4.82K03.51K2.88K3.35K3.79K3.90K4.10K4.18K4.43K3.28K3.42K3.30K4.82K
Cezve $2.51M 9% $1.97M 13%
17.1K012.2K11.5K11.8K13.6K15.4K16.5K17.1K14.4K13.0K12.9K11.6K15.9K
Chemex $3.14M 11% $818K 6%
7.22K04.94K4.17K5.24K6.00K6.36K6.77K7.11K6.25K5.60K6.08K4.98K7.22K
Scale $3.80M 13% $2.91M 20%
3.18K01.54K1.57K1.68K2.03K2.42K2.55K2.57K2.23K2.04K2.09K1.69K3.18K
Kettle $756K 3% $618K 4%
1.53K01.14K1.02K1.09K1.13K1.41K1.48K1.46K1.30K1.14K1.23K1.19K1.53K
Espresso Machine $8.41M 29% $3.64M 25%
2.58K06868406185982.15K5337979961.00K6688582.58K
Total $29.4M 100% $14.8M 100%

Each row of this table is a product sold over the past year (with a total at the bottom).

Note three important pieces:

  1. Icons help people quickly identify products of interest.
  2. Background color distinguishes between revenue and profit measures.
  3. The nanoplot on the right shows a tiny bargraph for monthly sales over the past year. This makes it easy to spot trends, and can be hovered over to get exact values.

Critically, the code for this table used the DataFrame library Polars, which makes it really easy to select rows and columns for styling.

What’s next?

The 2024 Table Contest

The world’s premier display table contest—the 4th annual Table Contest draws competitors from near and far, to showcase the latest and greatest examples in table presentation.

The contest was a great success! On July 1, 2024 we announced the 2024 winners and honorable mentions. Check ’em out!

posit::conf() workshop

We held a posit::conf() 2024 workshop, and you can find the materials at the Making Tables with gt and Great Tables repo.

If you’re curious about making beautiful, publication quality tables in Python or R, do have a look at the resources at that GitHub repository.

We covered the following table topics:

  • Create table components and put them together (e.g., header, footer, stub, etc.)
  • Format cell values (numeric/scientific, date/datetime, etc.)
  • Rearranging columns and handling column value alignments
  • Styling the table, either through data values or on a more granular level
  • Adding icons, plots, images, and incorporating your own HTML
  • and more!

Extra resources

Check out these resources to learn more about the wild and beautiful life of display tables:

  • Great Tables example gallery
  • The Design Philosophy of Great Tables (blog post)
  • 20 Minute Table Tutorial by Albert Rapp
  • PyCon talk: Making Beautiful, Publication Quality Tables is Possible in 2024

Hope all your tables are great!

A huge thanks to all the people who have contributed to Great Tables over the past year. It’s been a really incredible journey!