statsmodels.iolib.summary2.Summary.add_df#

Summary.add_df(df, index=True, header=True, float_format='%.4f', align='r')[source]#

Add the contents of a DataFrame to summary table

Parameters:
dfDataFrame

The DataFrame to add to the summary table.

indexbool

Reproduce the DataFrame row labels in summary table

headerbool

Reproduce the DataFrame column labels in summary table

float_formatstr

Formatting to float data columns

alignstr

Data alignment (l/c/r)