towhee.functional.mixins.display.DisplayMixin¶
- class towhee.functional.mixins.display.DisplayMixin[source]¶
Bases:
object
Mixin for displaying 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, optional) – The number of lines to print. Prints all if limit is negative. Defaults to 5.
header (_type_, optional) – The field names. Defaults to None.
tablefmt (str, optional) – The format of the output, supports html, plain, grid.. Defaults to ‘html’.