I have list like:
[1, 2, ['a', 'b', 'c',], 3]
How can I add a line in a table to insert values of sublist
['a', 'b', 'c',]
in one cell of table. The values have to be under each other
Is there any other libs to handle this use case if prettyTable is not available?
for now i have following code:
table = PrettyTable(headers)
for line in lines:
table.add_row(line)
print table
but sublist is displayed as list in the cell. I haven't found any information in prettyTable documentation about adding several items into one cell