-
-
Notifications
You must be signed in to change notification settings - Fork 379
[GSK-1700] Issue when df has single column #1385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
GSK-1700 Single feature issue
if the dataframe contains only one column, this will cause problems: even if the feature is indicated in the this is due to the fact that an sklearn model expects 1D data to be a pd.Series instead of pd.DataFrame. |
| return self.data_preprocessing_function(data) | ||
|
|
||
| # In the case where a dataframe has one column, most sklearn models require a Series instead of a DataFrame. | ||
| # We check also the case of PredictionFunctionModel to be extra inclusive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rabah-khalek could you add a unit test for it please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
|
Kudos, SonarCloud Quality Gate passed! |
This reverts commit 84f15eb.








the example is attached on the linear card.