takco.table module

class takco.table.Table(obj=None, _id=None, head=(), body=(), provenance=(), annotations=(), linked=True)[source]

Bases: dict

A takco table object

>>> Table(head=[['foo','bar']], body=[['1','2']]).head
(('foo', 'bar'),)
annotations: Dict[str, Any]
append(other)[source]
body: Tuple[Tuple[str, ...], ...]
classmethod concat(tables)[source]
property df
get(k, default=None)[source]

Return the value for key if key is in the dictionary, else default.

static get_headerId(header)[source]
head: Tuple[Tuple[str, ...], ...]
headerId: int
provenance: Dict[str, Any]
to_dict()[source]
class takco.table.TakcoAccessor(df)[source]

Bases: object

classmethod from_header(head)[source]
property head
highlight_cells(body=(), head=(), color=None, props=())[source]
highlight_pivot(level, colfrom, colto, color=None, props=(), **kwargs)[source]
property style
to_html()[source]
static try_html(obj)[source]
takco.table.from_tabel(obj, linked=True)[source]
takco.table.get_tabel_rows(matrix, linked=True)[source]
takco.table.to_tabel_rows(matrix)[source]