Skip to content

my first table schema integrationยค

untangling the degrees of freedom of tables has taken a while. a sign of significant progress is being able to integrate a schema into the table representation. the schema provides rich supplementary context for future visual and non-visual use.s

%%
    from nbconvert_a11y.repr import get_table, TableOptions
    HTML(DataFrame(columns=pandas.MultiIndex.from_product(["foo".split(), "bar".split()])).pipe(
        get_table, TableOptions(schema=
```toml
[properties.foo.properties.bar]
description = "the meaning of the second levels column named bar."
type = "number"
```
    )))
pandas dataframe with 0 rows, 1 columns with 1 index levels and 2 columns levels.
Nonefoo
bar
typenumber

schema

properties
foo
properties
bar
description
the meaning of the second levels column named bar.
type
number
from nbconvert_a11y.repr import get_table, TableOptions
HTML(DataFrame(columns=pandas.MultiIndex.from_product(["foo".split(), "bar".split()])).pipe(
    get_table, TableOptions(schema=
[properties.foo.properties.bar]
description = "the meaning of the second levels column named bar."
type = "number"
)))