Talks - Michael Chow, Richard Iannone: Making Beautiful, Publication Quality Tables in Python...

Learn how to create stunning, publication-ready tables in Python using GreatTables. Master formatting, styling, and visualization features like heat maps and sparklines.

Key takeaways
  • GreatTables is a Python library focused on creating publication-quality tables with comprehensive formatting and styling options

  • Three key ingredients for effective table design:

    • Structure (titles, headers, column spanners)
    • Formatting (numbers, percentages, currencies)
    • Styling (colors, backgrounds, text formatting)
  • Advanced visualization features include:

    • Heat maps for numerical comparisons
    • Nano plots/sparklines for compact data visualization
    • Interactive elements on hover
    • Custom formatting for currencies, percentages, and large numbers (K/M notation)
  • Output formats supported:

    • HTML
    • PDF
    • PNG
    • TIFF
    • Email-safe formats
  • Benefits compared to manual formatting:

    • Reproducible workflow
    • Code-based approach maintains data pipeline
    • Consistent styling across reports
    • No need to export to Excel
  • Key formatting capabilities:

    • Currency formatting with proper symbols
    • Percentage formatting with decimal control
    • Number grouping and scientific notation
    • Custom column selection using Polars or Pandas
  • Works with both Polars and Pandas dataframes as input sources

  • Features for improved readability:

    • Row grouping
    • Column spanners for hierarchical organization
    • Footnotes support
    • Custom background colors for data grouping
  • Focus on meeting business requirements while maintaining professional presentation

    • Configurable to match specific industry standards
    • Flexible formatting options for different use cases
  • Accessibility considerations built into HTML output