statsmodels.iolib.table.SimpleTable.insert_stubs#

SimpleTable.insert_stubs(loc, stubs)[source]#

Insert column of stubs at column loc

If there is a header row, it gets an empty cell. So len(stubs) should equal the number of non-header rows.

Parameters:
locint

The column at which to insert the stubs.

stubssequence of str

The stub strings, one per non-header row.