towhee.functional.mixins.display.DisplayMixin

class towhee.functional.mixins.display.DisplayMixin[source]

Bases: object

Mixin for display data.

Methods

as_str

show

Print the first n lines of a DataCollection.

__init__()[source]
show(limit=5, header=None, tablefmt='html', formatter={})[source]

Print the first n lines of a DataCollection.

Parameters:
  • limit (int) – The number of lines to print. Default value is 5. Print all if limit is non-positive.

  • header (list of str) – The field names.

  • tablefmt (str) – The format of the output, support html, plain, grid.