great-tables
great-tables copied to clipboard
Make awesome display tables using Python.
itables has this neat page with supported editors. I like that it includes screenshots, so you know what the table should look like in each editor... https://mwouts.github.io/itables/supported_editors.html
The current implementation of scaling numeric and categorical column values (needed for generating gradients and obtaining specific color values) could be more robust to less common value types in Pandas...
Polars supports nested data---such as lists and structs---in columns of data. Here's an example from the [polars guide](https://docs.pola.rs/user-guide/expressions/aggregation/#basic-aggregations) ```python import polars as pl url = "https://theunitedstates.io/congress-legislators/legislators-historical.csv" dtypes = { "first_name":...
A relatively simple table rendering yields a TypeError. Here's code that results in the error: ```py from great_tables import GT, md from great_tables.data import constants constants_mini = constants[["name", "value", "uncert",...
Related to https://github.com/posit-dev/great-tables/pull/34, I've implemented the path for using polars selectors, but need to add more tests of its usage. It seems like aspects of selection can be consolidated in...
E.g. `tab_spanner("name", ["some_nonmatching_name"])`
We currently don't have the ability to format numeric values as accounting-type values (i.e., handling of negative values different than using the minus sign). This should ideally work inside: -...
@jeroenjanssens has a neat example of table with nanoplots, visualizing NYC citi bike usage. From talking w/ him, let's get this, or something similar to it in the examples. We're...
This adds the `opt_table_font()` method, which can be used for the easy addition of fonts (or a font stack) to the table. Here's an example where a font stack was...
Currently, functions like `vals.fmt_number()` work as follows: * The input list or value is converted to a pandas DataFrame * The DataFrame is wrapped in GT * The corresponding fmt_...