4.5.7.3.1.1.3. statsmodels.iolib.table.Cell.format

Cell.format(width, output_format='txt', **fmt_dict)[source]

Return string. This is the default formatter for cells. Override this to get different formating. A cell formatter must accept as arguments a cell (self) and an output format, one of (‘html’, ‘txt’, ‘csv’, ‘latex’). It will generally respond to the datatype, one of (int, ‘header’, ‘stub’).