Exemple #1
0
 def _get_xarr(self, exog):
     if data_util._is_structured_ndarray(exog):
         exog = data_util.struct_to_ndarray(exog)
     return np.asarray(exog)
Exemple #2
0
 def _get_yarr(self, endog):
     if data_util._is_structured_ndarray(endog):
         endog = data_util.struct_to_ndarray(endog)
     return np.asarray(endog).squeeze()