-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
DOC Add version_added label for impute module #15549
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
sklearn/impute/_base.py
Outdated
@@ -120,6 +120,8 @@ class SimpleImputer(_BaseImputer): | |||
|
|||
Read more in the :ref:`User Guide <impute>`. | |||
|
|||
.. versionadded:: 0.14 |
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.
This has only been available as SimpleImputer since 0.20
versionadded helps users understand whether the same tool can be imported in different versions, so the fact that the functionality existed since 0.14 is irrelevant
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.
That's clear.
Maybe we could mention it ? with something like:
.. versionadded:: 0.14 | |
.. versionadded:: 0.20 | |
Moved from Imputer in sklearn.preprocessing. |
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.
At first, I was not convinced about mentioning this detail. But after seeing a lot of SO question, I think this worth mentioning something.
.. versionadded:: 0.20
`SimpleImputer` replaces the previous `sklearn.preprocessing.Imputer`
estimator which is now removed.
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.
@TwsThomas Could you make the change I think that we could merge it after.
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.
LGTM. Waiting for the CI to be merged.
Thanks @TwsThomas |
Reference Issues/PRs
Fixes partially #15426
What does this implement/fix? Explain your changes.
Update the version added tag for the imputer class.
Any other comments?
Might be part of the PR #15482 ?