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:
- csvfile
str Path to a file containing comma separated values.
- headersbool or
tupleofstr The first row may contain headers: set headers=True. Can also supply headers directly as a tuple of strings.
- stubsbool or
tupleofstr The first column may contain stubs: set stubs=True. Can also supply stubs directly as a tuple of strings.
- title
str,optional The title of the table.
- csvfile
- Returns:
SimpleTableThe table created from the CSV file.