-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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: Fix the docstring of to_stata in pandas/core/frame.py #22896
Comments
Working on this issue, referenced from #22899 . |
@leeyspaul are you working on this? I don't think anyone else is finally working on it. |
@datapythonista is this issue still open ? I would like to work on it if it is - otherwise, any other ones still open (most DOC issues seem taken) ? |
Yes, this is open and I don't think there is a PR for it, or anyone working on it. So, please go ahead. |
@datapythonista Thanks. Just to clarify, I don't see a Return sections currently included in the to_stata docstring - did you want that added in presumably rather than modified ? |
Yes, I was just mentioning examples, but the idea is that the docstring is as good as possible and follow all the standards named in the documentation. |
Thanks, will do ! |
@datapythonista Just submitted a PR, let me know if there are any modifications required. |
pandas docstring are expected to follow the format defined in https://pandas.pydata.org/pandas-docs/stable/contributing_docstring.html
This includes among other things:
transformed : Series
) but just the type (e.g.Series
) in the first line.We should make the required adjustments in the docstring of the function
to_stata
inpandas/core/frame.py
.We should validate the docstring with our validator (which does not validate all the formats, but some):
./scripts/validate_docstrings.py pandas.DataFrame.to_stata
And we should validate the PEP-8 of the examples (note that the next command will validate the PEP-8 of all examples, just make sure that none of the shown is in the function being addressed, the rest will be fixed in separate issues):
flake8 --doctests pandas/core/frame.py
The text was updated successfully, but these errors were encountered: