Skip to content
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

DOC Ensures that OneHotEncoder passes numpydoc validation #20406

Merged
merged 2 commits into from Jun 27, 2021
Merged

DOC Ensures that OneHotEncoder passes numpydoc validation #20406

merged 2 commits into from Jun 27, 2021

Conversation

g4brielvs
Copy link
Contributor

Reference Issues/PRs

Addresses #20308

What does this implement/fix? Explain your changes.

This PR ensures OneHotEncoder is compatible with numpydocd

  • Remove OneHotEncoder from DOCSTRING_IGNORE_LIST
  • Minor style fixes.

Any other comments?

Thanks #DataUmbrellla

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @g4brielvs!

@@ -449,7 +449,8 @@ def fit(self, X, y=None):

Returns
-------
self
self:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there is no type associated, the : is not necessary https://numpydoc.readthedocs.io/en/latest/format.html#parameters

Suggested change
self:
self

@rth rth merged commit dbbb88d into scikit-learn:main Jun 27, 2021
@reshamas
Copy link
Member

Updating with correct spelling: #DataUmbrella sprint

samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants