Repolode
posit-dev

posit-dev/great-tables

A Python library for building styled, publication-quality display tables from pandas or Polars DataFrames, rendered to HTML or images.

Estrellas
2,903
Forks
141
Issues abiertos
73
Último commit
hace 19 horas

¿Qué es?

Great Tables is a Python package for turning DataFrames into display-ready tables. It works from a set of composable table components: a header and footer, a stub holding row labels, spanner labels above column labels, and more. Cell values can be formatted in many ways, including currency, dates, and compact numbers, and columns can be hidden or reordered.

The package accepts pandas or Polars DataFrames as input. A table is built by chaining methods on a GT object, and the result is rendered to HTML by default or saved to an image file. It is intended for use in Jupyter notebooks and Quarto documents, and the show() method opens the table in a browser when run from a console.

The package includes 16 example datasets, such as sp500 and gtcars, along with online documentation and a reference for each method.

Funciones clave

  • 01Builds tables from pandas or Polars DataFrames using chained methods.
  • 02Supports headers, footers, row-label stubs, and spanner labels over column labels.
  • 03Formats cell values for currency, dates, and compact numbers.
  • 04Renders output as HTML by default, or to an image file.
  • 05Ships with 16 example datasets for experimentation.

Casos de uso

  • Presenting summary statistics in a Jupyter notebook.
  • Producing formatted tables inside Quarto reports.
  • Styling pandas or Polars query results for sharing with non-technical readers.

Temas

Preguntas frecuentes

¿Qué es great-tables?
A Python library for building styled, publication-quality display tables from pandas or Polars DataFrames, rendered to HTML or images. Great Tables is a Python package for turning DataFrames into display-ready tables. It works from a set of composable table components: a header and footer, a stub holding row labels, spanner labels above column labels, and more. Cell values can be formatted in many ways, including currency, dates, and compact numbers, and columns can be hidden or reordered.
¿great-tables es gratuito? ¿Qué licencia tiene?
great-tables es open source bajo la licencia MIT. Revisa los términos de la licencia antes de usarlo en productos comerciales.
¿great-tables sigue mantenido?
Mantenimiento activo. El último commit de great-tables fue el 18 oct 2026.
¿Para qué puedo usar great-tables?
Presenting summary statistics in a Jupyter notebook. Producing formatted tables inside Quarto reports. Styling pandas or Polars query results for sharing with non-technical readers.
¿Dónde consigo great-tables?
El código fuente y las instrucciones de instalación están en GitHub: https://github.com/posit-dev/great-tables

Resumen generado por IA a partir del README del proyecto. Las estadísticas de GitHub se actualizan a diario.

Proyectos relacionados