Skip to content

tensorboard

Functions:

Name Description
to_markdown_table

Format a dictionary of column names to lists of cell contents as a markdown table.

to_markdown_table

to_markdown_table(table: dict[str, list[str]]) -> <class 'str'>

Format a dictionary of column names to lists of cell contents as a markdown table.

Parameters:

Name Type Description Default

table

dict[str, list[str]]

A pandas-style table

required

Raises:

Type Description
ValueError

If the table has no columns.

ValueError

If the table's lists are not all of equal length.

Returns:

Type Description
<class 'str'>

The table formatted as a markdown string.