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
This is not possible because all our contrast building functions work on data frames, not on arrays. For example, imagine you have a numeric predictor and a string predictor. In a data frame, that is two columns. In a numpy array, we must one hot encode the string variable, so the array has many more columns.
This is why in the scikit learn proposal, there must be a pipeline object to convert a single newdata into two separate X and y: #35
I think it would be useful to support specifying a model without
statsmodels.formulas.api
Pandas example
Currently it throws the error below, probably meaning that
get_modeldata()
could be generalized:Polars example
Changing to
polars
does not fix it, it seems likeget_modeldata()
could be improved. See example below and error thrown:Error thrown:
The text was updated successfully, but these errors were encountered: