-
craftutils.wrap.dragons.Table.Column.pformat(max_lines=
None, show_name=True, show_unit=False, show_dtype=False, html=False) Return a list of formatted string representation of column values.
If no value of
max_linesis supplied then the height of the screen terminal is used to setmax_lines. If the terminal height cannot be determined then the default will be determined using theastropy.conf.max_linesconfiguration item. If a negative value ofmax_linesis supplied then there is no line limit applied.Parameters¶
- max_linesint
Maximum lines of output (header + data rows)
- show_namebool
Include column name. Default is True.
- show_unitbool
Include a header row for unit. Default is False.
- show_dtypebool
Include column dtype. Default is False.
- htmlbool
Format the output as an HTML table. Default is False.
Returns¶
- lineslist
List of lines with header and formatted column values