def _col_info(result, info_dict=None):
 if (info_dict is None):
  info_dict = {}
 out = []
 index = []
 for i in info_dict:
  if isinstance(info_dict[i], dict):
   continue
  try:
   out.append(info_dict[i](result))
  except:
   out.append('')
  index.append(i)
 out = pd.DataFrame({str(result.model.endog_names): out}, index=index)
 return out

def _col_info ( result , info_dict = None ) : if ( info_dict is None ) : info_dict = { } out = [ ] index = [ ] for i in info_dict : if isinstance ( info_dict [ i ] , dict ) : continue try : out . append ( info_dict [ i ] ( result ) ) except : out . append ( '' ) index . append ( i ) out = pd . DataFrame ( { str ( result . model . endog_names ) : out } , index = index ) return out
stack model info in a column .