statsmodels.iolib.summary2.Summary#

class statsmodels.iolib.summary2.Summary[source]#

Result summary

Construction does not take any parameters. Tables and text can be added with the add_ methods.

Attributes:
tableslist

List of tables added with add_df, add_array or add_dict.

settingslist of dict

Formatting settings associated with each entry in tables.

extra_txtlist of str

Extra lines that are added to the text output.

titlestr

Title of the summary table.

Methods

add_array(array[, align, float_format])

Add the contents of a Numpy array to summary table

add_base(results[, alpha, float_format, ...])

Try to construct a basic summary instance

add_df(df[, index, header, float_format, align])

Add the contents of a DataFrame to summary table

add_dict(d[, ncols, align, float_format])

Add the contents of a Dict to summary table

add_text(string)

Append a note to the bottom of the summary table

add_title([title, results])

Insert a title on top of the summary table

as_html()

Generate HTML summary table

as_latex([label])

Generate LaTeX summary table

as_text()

Generate ASCII summary table

Methods

add_array(array[, align, float_format])

Add the contents of a Numpy array to summary table

add_base(results[, alpha, float_format, ...])

Try to construct a basic summary instance

add_df(df[, index, header, float_format, align])

Add the contents of a DataFrame to summary table

add_dict(d[, ncols, align, float_format])

Add the contents of a Dict to summary table

add_text(string)

Append a note to the bottom of the summary table

add_title([title, results])

Insert a title on top of the summary table

as_html()

Generate HTML summary table

as_latex([label])

Generate LaTeX summary table

as_text()

Generate ASCII summary table