record_table#

popo.plotting.tables.record_table(record, title, subtitle=None, decimals=3, width='60%')#

A two-column statistic | value table for a one-row summary.

Parameters:
  • record (Mapping[str, object]) – Named statistics, e.g. a dict of results or frame.row(0, named=True) from polars.

  • title (str) – Table title.

  • subtitle (str | None) – Optional subtitle.

  • decimals (int) – Decimal places for non-integer numbers.

  • width (str) – CSS width of the table; narrower than full width so names sit close to their values.

Return type:

GT

Returns:

The styled table, ready to display in a notebook.