8000 DOC Ensures that sklearn.utils.validation.indexable passes numpydoc validation by majauhar · Pull Request #21431 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Ensures that sklearn.utils.validation.indexable passes numpydoc validation #21431

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

Merged
merged 2 commits into from
Oct 24, 2021

Conversation

majauhar
Copy link
Contributor

Co-authored-by: miwojc miwojc@protonmail.com

Reference Issues/PRs

Addresses #21350

What does this implement/fix? Explain your changes.

Any other comments?

This is my and @miwojc second pull request made during #DataUmbrella sprint.

Co-authored-by: miwojc <miwojc@protonmail.com>
Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I propose a small suggestion to follow what is proposed in numpydoc:

  • since we return result, we can use it as a name of a variable
  • we can specify what to expect as type in the returned list.
  • adding the specificity of passing None through in the results.

Modifies the Returns section in the docstring of indexable() function to make it more informative and clear.

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
@glemaitre glemaitre merged commit 8d26900 into scikit-learn:main Oct 24, 2021
@glemaitre
Copy link
Member

Thanks @majauhar LGTM

ogrisel pushed a commit to ogrisel/scikit-learn that referenced this pull request Oct 28, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
…alidation (scikit-learn#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit that referenced this pull request Dec 25, 2021
…alidation (#21431)

Co-authored-by: miwojc <miwojc@protonmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Sign up for free to join this conversation on GitHub. Alread 63D1 y have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0