statsmodels.iolib.table.csv2st#

statsmodels.iolib.table.csv2st(csvfile, headers=False, stubs=False, title=None)[source]#

Return SimpleTable instance, created from the data in a CSV file

Parameters:
csvfilestr

Path to a file containing comma separated values.

headersbool or tuple of str

The first row may contain headers: set headers=True. Can also supply headers directly as a tuple of strings.

stubsbool or tuple of str

The first column may contain stubs: set stubs=True. Can also supply stubs directly as a tuple of strings.

titlestr, optional

The title of the table.

Returns:
SimpleTable

The table created from the CSV file.