What the port found

Everything tabelline still lacks to do what the Great Tables Get Started guide, blog posts and examples, and gt's articles, do, found while porting them. What the port found that tabelline has gained since, in 0.1, is told in the devlog post What the book found for 0.1; what 0.2 closed is listed at the end of this page.

The gaps go from the simplest to the most complex, in the order a table is made: the data, the parts of the table, its columns and rows, then formats, text, options and styles, and last what is done with the table. Each says where it is planned in the feature map, or new when the map does not have it; the new ones go to the build of the next release and to the backlog.

The gaps

Step What Where it shows Plan
Data The Get Started pages and the blog still take pandas' head, select and loc from the book's helpers in gtdata: nanuq has them, the chapters have not moved to it yet every page, v0.2.0 and v0.4.0 the most later
Formats A small chart in each row drawn from other data (a bar chart, a line chart with axes), as gt's ggplot_image() or gt-extras' plots: today a proc that writes SVG, through fmt Lemurs, An NFL season kept: fmt with a proc does it
Export Saving a table as an image (gtsave); tabelline has the HTML (toHtml) v0.4.0 later: Out of the browser

Differences kept

Not gaps, but worth knowing:

  • tabelline has datasets of its own, isole (the twin of islands) and citta, not Great Tables' islands, airquality and sza: the book reads copies of those (gtdata).
  • tabelline stops on a column that does not exist, where Great Tables lets it pass and gt stops too (Premade Themes).
  • Aggregates skip missing values, where gt's mean gives NA without na.rm = TRUE (Creating Summary Lines).
  • Missing values are blank, where Great Tables writes None and gt NA; subMissing shows a dash.
  • tabelline has no google_font(), which loads remote files: a table asks for the font by name, with a stack of the reader's own fonts after it (v0.12.0).
  • loc.body takes cols =, Great Tables columns=; style.borders takes a set of sides.
  • Styles join with &, not in a list; locations are any number of arguments.

Closed by 0.2

Gaps the port found that tabelline 0.2 closed; the chapters now use what it gained.

Step What Where it shows
Parts Summary rows and grand summary rows, with their four locations Styling the whole table, Table Theme Options, Location selection
Columns colsAdd, a column added to the table Intro
Columns colsUnits, units in gt's notation Column Labels
Formats Every date style of gt, and its time styles, in every language of CLDR Formatting Values
Formats Nanoplots: line, bar and box plots, reference lines and areas, nanoplotOptions Nanoplots
Formats Lists and records in a cell: a list of values (Polars' list columns) and pairs of x and y (Polars' struct), with expandX Nanoplots, v0.4.0
Options 142 options: the container, the column label top border, hlines style and width, vlines, font style, the source notes and grand summary backgrounds, the stub border, the row group borders, the table body borders Table Theme Options
Styles fromColumn: a style whose value comes from a column of the row Styling the Table Body
Code Pairs as blocks (colsLabel: then Ozone: ...), every table as tabella(data): body every page
Code A table in one step in a notebook, nbTable data: body, without naming it every page
Data Data frames: tabella(df) for a nanuq (Polars for Nim) DataFrame, import tabelline/nanuq; the case study shapes its data with nanuq, as R does with dplyr Case Study: Clinical Tables
Parts tabSpanner gathers its columns next to the first, in the order given (gather = false leaves them) Column Labels, Case Study: Clinical Tables
Parts Summary rows of the same label from two calls make one row, as in gt Creating Summary Lines
Columns Columns by position, from 0, and from the end (positions(0, -1), positions(2 .. 4)); rules joined (a + b, a - b, startsWith(["pop_", "pct_"])) Column Selection, Case Study: Clinical Tables
Formats Nanoplots with an option for each point (a colour, a size), and dates as the x values Nanoplots
Text Line breaks in md(): two spaces, or a backslash, before a newline Case Study: Clinical Tables
Options systemFonts, Great Tables' font stacks by name ("industrial") v0.3.0
Export extractSummary(values = true): the summary cells as values, as gt's extract_summary() Creating Summary Lines
Styles Every CSS colour name (148; rebeccapurple, bisque, darkgreen), and white text on a dark heading given by name Colorizing with Data, v0.2.0
Data Text with a zero in front ("0400") stays text when a CSV is read, as pandas keeps it Colorizing with Data
Data A list column of a nanuq data frame (a nanoplot's values) becomes a list in the table Examples
Parts tabStub, the stub (and the groups) of a table already made, as Great Tables' tab_stub() Stub, Examples, SEPTA timetables
Parts tabRowGroup(label, id = ...) relabels a group, with Markdown (a link) too Find an example by feature
Columns A block of colsLabel mixes plain labels with html/md ones SEPTA timetables
Columns ofKind(vkBool), columns by the kind of their values, as cs.by_dtype(pl.Boolean) v0.18.0
Columns named(cond) and matches(proc), columns by any test of the name; a & b, the columns two rules share Column Selection, SEPTA timetables
Rows Negative row indices, from the end (-1, or Nim's ^1) Row Selection, SEPTA timetables
Formats accounting in fmtNumber, fmtInteger and fmtPercent v0.15.0
Formats Significant figures, nSigfig, in fmtNumber, also with compact Examples
Formats fmtDatetime(formatStr = "%b %d %Y"), a datetime by a strftime format v0.18.0
Formats Markdown in subMissing's text, md"**STABLE**" v0.13.0
Formats fmtFlag: the country's name on hover, and Great Tables' round flags (round = true) v0.15.0
Formats The format functions take the arguments of their verbs: pattern, locale, expStyle, accounting, nSigfig Formatting Values, Creating Summary Lines
Text Fuller Markdown in md(): HTML entities, _ and __, ~~struck~~, <https://...>, paragraphs and lists Header and Footer
Options Light text on a dark stub, row group or summary row, as on the heading and the column labels Table Theme Options
Options optStylize with gt's six styles, in its six colours Premade Themes
Options optAllCaps on the stub and the row group labels too, or on the locations named Premade Themes, v0.3.0
Styles style.text(vAlign = ...) v0.13.0, Lemurs, Basic gt Styling Reference
Styles style.text(indent = ...) and style.fill(alpha = ...) Basic gt Styling Reference
Styles loc.stub(labels = ["banana"]), rows by their label, with indices too Location selection
Styles loc.rowGroups(rows = ...), the groups of some rows, by index or by a condition Location selection
Styles loc.body(mask = ...): a test for each cell, of its value and its column Styling the Table Body, Location selection
Styles A fill on a spanner colours its whole cell Styling the whole table
Styles dataColor leaves the stub alone, as Great Tables does Super Bowl Squares
Styles R's 657 colour names (sienna4, chartreuse3), which gt and Great Tables take Examples
Styles palette("great-tables"), Great Tables' default palette for dataColor (tabelline keeps blues as its own) Colorizing with Data
Look Formatted numbers do not break inside a cell (−$24,334.23, 1.63 × 10⁻²) v0.15.0, v0.13.0
Look stubSticky = true: the stub stays in view while a wide table scrolls sideways (not in gt) SEPTA timetables