towhee.functional.mixins.display.to_plain_table

towhee.functional.mixins.display.to_plain_table(data, header, tablefmt)[source]

Convert two dimensional data structure into plain 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 plain, grid.