Skip to content

Period index 29204 #29224

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

Closed
wants to merge 9 commits into from
Closed

Conversation

HughKelley
Copy link
Contributor

@pep8speaks
Copy link

pep8speaks commented Oct 25, 2019

Hello @HughKelley! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-10-29 14:20:10 UTC


Parameters
----------
**fields
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing you are documenting this from the __new__ method, but shouldn't be documenting that externally as that isn't something the user would interact with.

Can you see how that actually gets mapped to the individual class constructors? That's what should be documented

Copy link
Contributor Author

@HughKelley HughKelley Oct 26, 2019

Choose a reason for hiding this comment

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

@WillAyd Ok thanks. I documented only because the docstrings validator identified it as missing from the string and raised an error. If the user doesn't define the periodIndex using ordinal or data a range is built using start, end and periods or freq and the other optional arguments held in fields by passing them to periodArray._generate_range(). is that what you mean by how it's mapped?

Should I include that all in the docstring here or somewhere else or does it not matter bc it's not relevant to usage?

@WillAyd WillAyd added the Docs label Oct 25, 2019
@HughKelley HughKelley closed this Nov 10, 2019
@HughKelley HughKelley deleted the PeriodIndex_29204 branch January 6, 2020 16:47
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.

DOCS: docstrings formatting errors in pandas.PeriodIndex
3 participants