Skip to content

docs: batch guide names its tables and states the value of a parameter as code - #260

Merged
SimonHeybrock merged 1 commit into
mainfrom
259-batch-guide-terms
Nov 23, 2026
Merged

SimonHeybrock merged 1 commit into
mainfrom
259-batch-guide-terms

Conversation

@SimonHeybrock

Copy link
Copy Markdown
Member

Simon read the first section of the batch guide and found four of its rules unclear (see #259). This changes the text of the guide only.

The tables have names. The guide defined table, row, key, column and cell as terms, with "column" meaning only a column named as a parameter. A reader takes "column" as any column of the frame, so "the columns are the blanks" read as false. The guide now says batch table, with its parameter columns and note columns, shows one, and names the other tables: the files table (files.csv), the rows of a source, a table file. It says that results are not in the batch table.

A batch is a spec, settings and a batch table. The guide said "a template and a table". Since #256 the batch keeps a setting also for a parameter that has a column, which a template cannot hold, so the template is worked out from the settings and the batch table. It is explained where the request of a row is.

The value of a parameter for a row is one function, with an example, where it was a paragraph:

def value(batch, key, p):                 # the value of parameter p for the row `key`
    table = batch.frame()
    if p in table.columns and not empty(table.loc[key, p]):
        return table.loc[key, p]          # the row gives its own
    if p in batch.fills:
        return MISSING                    # the row waits for its file
    if p in batch.settings:
        return batch.settings[p]          # the value for the batch
    return default(p)                     # of the spec; None if p takes None; else MISSING

Seven rules, where there were eleven. "A cell is plain data, converted in one place" and "A column has the dtype of its parameter" describe table.py and moved to the section on cells. "Each kept file has one writer" is a sentence under the table of what is kept on disk. "The columns are the blanks" is part of what a batch table is.

Why rows.json is not written by pandas is said under what is kept on disk: to_json rounds floats, so 0.1 + 0.2 comes back as 0.3.

Not done here: the docstrings and Batch.columns still say "column" for a parameter column. They follow with the renaming of Source, which is not decided.

🤖 Generated with Claude Code

The terms `table`, `row`, `key`, `column` and `cell` were defined with a
meaning narrower than the natural one: "column" meant a column named as a
parameter only, so "the columns are the blanks" read as false for a frame
that also has `run` and `name`. The guide now speaks of the batch table,
its parameter columns and its note columns, and names the other tables
(the files table, the rows of a source, a table file).

A batch is described as a spec, settings and a batch table. The template
is worked out from these, and is explained where the request of a row is.

The rule for the value of a parameter for a row is one function with an
example, in place of a paragraph. The rules on cells as plain data and on
dtypes moved to the section on cells, and "each file has one writer" to
the table of what is kept on disk, which now says why `rows.json` is not
written by pandas' `to_json`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant