Skip to content

DOC: fix _validate_names docstring #29729

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 3 commits into from
Nov 20, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@gfyoung gfyoung added the Docs label Nov 20, 2019
Copy link
Member

@gfyoung gfyoung left a comment

Choose a reason for hiding this comment

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

I get fixing the doc-string (because we aren't issuing a warning).

Not sure why we are removing the return part of the logic though.

@jbrockmendel
Copy link
Member Author

Because the one place where the function is called, the returned value isn’t assigned to snything

Check if the `names` parameter contains duplicates.

If duplicates are found, we issue a warning before returning.
Raise ValueError if the `names` parameter contains duplicates.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a Raises section

Copy link
Member Author

Choose a reason for hiding this comment

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

updated+green

@jreback jreback added this to the 1.0 milestone Nov 20, 2019
@jreback jreback merged commit 7133447 into pandas-dev:master Nov 20, 2019
@jreback
Copy link
Contributor

jreback commented Nov 20, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the depr-kwargs2 branch November 20, 2019 17:36
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants