def _get_exog_re_names(self, exog_re):
 if (self.k_re == 0):
  return []
 if isinstance(exog_re, pd.DataFrame):
  return exog_re.columns.tolist()
 elif (isinstance(exog_re, pd.Series) and (exog_re.name is not None)):
  return [exog_re.name]
 elif isinstance(exog_re, list):
  return exog_re
 defnames = ['x_re{0:1d}'.format((k + 1)) for k in range(exog_re.shape[1])]
 return defnames

def _get_exog_re_names ( self , exog_re ) : if ( self . k_re == 0 ) : return [ ] if isinstance ( exog_re , pd . DataFrame ) : return exog_re . columns . tolist ( ) elif ( isinstance ( exog_re , pd . Series ) and ( exog_re . name is not None ) ) : return [ exog_re . name ] elif isinstance ( exog_re , list ) : return exog_re defnames = [ 'x_re{0:1d}' . format ( ( k + 1 ) ) for k in range ( exog_re . shape [ 1 ] ) ] return defnames
passes through if given a list of names .