-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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 formatting errors in docstrings #27977
Labels
Comments
@datapythonista, thanks so much for your advice. We'd been attempting to eliminate duplication of effort, but needed a better method. |
datapythonista
changed the title
WALMART HACKATHON INFO: Issues to work on
DOC: Fix formatting errors in docstrings
Aug 20, 2019
5 tasks
5 tasks
39 tasks
Is this still open |
Running |
3 tasks
2 tasks
3 tasks
This was referenced Sep 29, 2019
ladyyvii
added a commit
to ladyyvii/pandas
that referenced
this issue
Oct 1, 2019
4 tasks
jorisvandenbossche
pushed a commit
that referenced
this issue
Oct 1, 2019
josibake
pushed a commit
to josibake/pandas
that referenced
this issue
Oct 1, 2019
plodocus
added a commit
to plodocus/pandas
that referenced
this issue
Oct 8, 2019
5 tasks
This was referenced Mar 25, 2020
Merged
This was referenced Apr 4, 2020
This was referenced May 24, 2020
is there still work to be done on this issue? can i take it if there is ? |
Sure take it!
…On Thu, May 28, 2020 at 5:02 PM willpeppo ***@***.***> wrote:
is there still work to be done on this issue? can i take it if there is ?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#27977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATCQHZPKABMUPS25NPTTYDRT3GOVANCNFSM4IMQOPIQ>
.
|
take |
5 tasks
This was referenced Nov 15, 2020
5 tasks
Is there still work that needs to be done on this? |
1 task
This was referenced Jan 12, 2023
This was referenced Feb 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Historically, there was no validation on how docstrings were written. Some conventions were usually followed, but as the project grew, it was more difficult to ensure that all the API documentation pages are consistent, and don't have mistakes.
For the last two years, we've been implementing all sorts of validations to make sure every class, method, function and attribute is correctly documented.
The list of validations can be found here in the script that validates them: https://github.com/pandas-dev/pandas/blob/master/scripts/validate_docstrings.py#L77
Many of them have already been fixed in all the pages, and they could be added to the CI so they are not reintroduced again. The list of errors currently validated can be seen at the CI script: https://github.com/pandas-dev/pandas/blob/master/ci/code_checks.sh#L267
The list of pending errors making the difference is:
Some of them makes more sense to work when fixing the content of an object (like adding the description, or objects that simply don't have any documentation).
But some of them are just formatting errors, those are the ones I'd start with:
To find errors for one of them you can use:
Or for errors that makes sense to address together:
This should give the list of errors to fix. We've got a list of steps to follow when fixing a docstring that it can be useful to you at: https://python-sprints.github.io/pandas/dashboard.html
VERY IMPORTANT
The main challenge will be not repeating the same work as other sprinters, which is very frustrating, and happened massively at every sprint. My recommendation is BEFORE doing any work, to create an issue for the error code you plan to work on (check that it hasn't already been created). In the error write the list of errors that
validate_docstrings.py
returns. Then in a comment, take 10 of them, and write that you're going to fix them. Other people can work on a different 10. When opening a PR, reference the issue.I created an issue for reference: #27976
Good luck!
The text was updated successfully, but these errors were encountered: