docstr: 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 : str
      Formatting to float data columns
  align : str
      Data alignment (l/c/r)
docstr_tok: ["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",":","str","Formatting","to","float","data","columns","align",":","str","Data","alignment","(","l\/c\/r",")"]
code: def add_df(
      self, df, index=True, header=True, float_format="%.4f", align="r"
  ):
      """
      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 : str
          Formatting to float data columns
      align : str
          Data alignment (l/c/r)
      """
  
      settings = {
          "index": index,
          "header": header,
          "float_format": float_format,
          "align": align,
      }
      self.tables.append(df)
      self.settings.append(settings)
  
imports: from statsmodels.compat.pandas import FUTURE_STACK
  from statsmodels.compat.python import lzip
  import datetime
  from functools import reduce
  import re
  import textwrap
  import numpy
  import pandas
  from .table import SimpleTable
  from .tableformatting import fmt_latex, fmt_txt
label_desc: Use image node_id 6 for calling the Summary obj's underlying member method code with example usage: obj.add_df(df, index, header, float_format, align) without return types