towhee.functional.mixins.display.to_printable_table¶
- towhee.functional.mixins.display.to_printable_table(data, header=None, tablefmt='html', formatter={})[source]¶
Convert two dimensional data structure into printable table
- Parameters:
data (List[List], or List[Dict]) – The data filled into table. If a list of dict is given, keys are used as column names.
header (Iterable[str]) – The name of columns defined by users.
tablefmt (str) – The format of the output, support html, plain, grid.