-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
set_output doesn't work for inverse_transform method #27843
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
Comments
We did not implement the |
I see. Is it on the roadmap? |
@glemaitre I would like to take this, would be great if you could point out where to start |
@sky-2002 I took a look into this and my best guess is that you could add a UPDATE: Linked here is an implementation of |
Nop this is not this API. This |
Okay, thanks guys @RxndmForest @glemaitre , I am opening a PR for this, have added |
Any update on this? Seems to be stale for some time, but it is a helpful feature. |
Seconding this. set_output should affect both transform and inverse_transform in the same way. |
Describe the bug
Using
set_output(transfrom="pandas")
doesn't return a pandas dataframe for the StandardScaler'sinverse_transform
method.Steps/Code to Reproduce
Expected Results
I expect a pd.DataFrame in return, just like with the
transform
method.Actual Results
A numpy array.
Versions
The text was updated successfully, but these errors were encountered: