You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# handle ndarrays and catch array-like for an error
elif data.__class__ is np.ndarray or not isinstance(data, np.ndarray):
if not isinstance(data, np.ndarray):
raise NotImplementedError("Array-like objects are not supported")
The message that Array-like objects are not supported doesn't make sense to me. It looks like it should be the exact opposite: only array-like objects are supported. Am I missing something?
For that matter, is there a reason why the first condition is specifically ndarray without allowing subclasses (i.e. change data.__class__ is np.ndarray to isinstance(data, np.ndarray))?
The text was updated successfully, but these errors were encountered:
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tools/tools.py#L205
The message that Array-like objects are not supported doesn't make sense to me. It looks like it should be the exact opposite: only array-like objects are supported. Am I missing something?
For that matter, is there a reason why the first condition is specifically ndarray without allowing subclasses (i.e. change
data.__class__ is np.ndarray
toisinstance(data, np.ndarray)
)?The text was updated successfully, but these errors were encountered: