dcase_util.ui.FancyStringifier.table

FancyStringifier.table(cell_data=None, column_headers=None, column_types=None, column_separators=None, row_separators=None, indent=0)[source]

Data table

Parameters
cell_datalist of list

Cell data in format [ [cell(col1,row1), cell(col1,row2), cell(col1,row3)], [cell(col2,row1), cell(col2,row2), cell(col2,row3)] ] Default value None

column_headerslist of str

Column headers in list, if None given column numbers are used Default value None

column_typeslist of str

Column data types, if None given type is determined automatically. Possible values: [‘int’, ‘float1’, ‘float2’, ‘float3’, ‘float4’, ‘float5’, ‘float6’, ‘str10’, ‘str20’]] Default value None

column_separatorslist of int

Column ids where to place separation lines. Line is placed on the right of the indicated column. Default value None

row_separatorslist of int

Row ids where to place separation lines. Line is place after indicated row. Default value None

indentint

Amount of indention used for the line Default value 0

Returns
str