towhee.functional.mixins.display.DisplayMixin¶
- class towhee.functional.mixins.display.DisplayMixin[source]¶
Bases:
object
Mixin for display data.
Methods
as_str
Print the first n lines of a DataCollection.
- 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.