statsmodels.iolib.table.SimpleTable.get_colwidths#

SimpleTable.get_colwidths(output_format, **fmt_dict)[source]#

Return the widths of each column, using a cache

Parameters:
output_formatstr

One of ‘txt’, ‘csv’, ‘html’ or ‘latex’.

**fmt_dict

Additional formatting options that override the table’s output-specific formatting.

Returns:
list of int

The width of each column.