'Add the contents of a DataFrame to summary table
Parameters
df : DataFrame
header: bool
Reproduce the DataFrame column labels in summary table
index: bool
Reproduce the DataFrame row labels in summary table
float_format: string
Formatting to float data columns
align : string
Data alignment (l/c/r)'

def add_df(self, df, index=True, header=True, float_format='%.4f', align='r'):

    settings = {'index': index, 'header': header, 'float_format': float_format, 'align': align}
    self.tables.append(df)
    self.settings.append(settings)
