docstr: Add the contents of a Dict to summary table
  
  Parameters
  ----------
  d : dict
      Keys and values are automatically coerced to strings with str().
      Users are encouraged to format them before using add_dict.
  ncols : int
      Number of columns of the output table
  align : str
      Data alignment (l/c/r)
  float_format : str
      Formatting to float data columns
docstr_tok: ["Add","the","contents","of","a","Dict","to","summary","table","Parameters","--","--","--","--","--","d",":","dict","Keys","and","values","are","automatically","coerced","to","strings","with","str","(",")",".","Users","are","encouraged","to","format","them","before","using","add_dict",".","ncols",":","int","Number","of","columns","of","the","output","table","align",":","str","Data","alignment","(","l\/c\/r",")","float_format",":","str","Formatting","to","float","data","columns"]
code: def add_dict(self, d, ncols=2, align="l", float_format="%.4f"):
      """Add the contents of a Dict to summary table
  
      Parameters
      ----------
      d : dict
          Keys and values are automatically coerced to strings with str().
          Users are encouraged to format them before using add_dict.
      ncols : int
          Number of columns of the output table
      align : str
          Data alignment (l/c/r)
      float_format : str
          Formatting to float data columns
      """
  
      keys = [_formatter(x, float_format) for x in d.keys()]
      vals = [_formatter(x, float_format) for x in d.values()]
      data = np.array(lzip(keys, vals))
  
      if data.shape[0] % ncols != 0:
          pad = ncols - (data.shape[0] % ncols)
          data = np.vstack([data, np.array(pad * [["", ""]])])
  
      data = np.split(data, ncols)
      data = reduce(lambda x, y: np.hstack([x, y]), data)
      self.add_array(data, align=align)
  
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 8 for calling the Summary obj's underlying member method code with example usage: obj.add_dict(d, ncols, align, float_format) without return types