-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 double blank lines in Series docstrings #23632
Comments
At least some of the hits reported by |
Thanks for reporting @douglatornell. That makes sense, as actually we're checking double line breaks, not double blank lines. We should probably change the error message to be more descriptive, but in any case, those should be fixed too. |
PR #23651 is a start at fixing this issue but not all of the issues that
35 messages compared to 43 before c114376. |
All the statistical functions like mean, max... reuse the same docstring, if you want to spend a bit of time on that, you should be able to fix 10 docstring with one change. The ones in We can merge your changes and leave them for later, but if you want to continue, what you can do is to see the docstring content (in the documentation web, or by calling Or if you use |
I'm planning to sprint again tomorrow in Toronto, so I will see if I can advance this further. Thanks for the suggestions on how to track down the docstrings that aren't defined in |
Ok, cool. Better let's use a new branch and open another PR. So we don't need to review again the changes of today. |
I've gotten the list of errors down to 2:
I think the issue for them is due to the deprecation warnings that are included in their docstrings. I'll see if I can sort that out in the next few days, and then make that and what I did today a new PR. |
Thanks @douglatornell, don't worry about those. It's not worth spending time in fixing docstrings that will be removed in the next couple of months. We're making changes so they are ignored in the validation in #23650. So you can open the new PR with what you've got. Thanks for taking care of this! |
Done! Thanks for your help on this @datapythonista. Sorry about the 2 commits above referencing this issue. I messed up on branching. PR #23698 is a clean, single commit 864720a. |
In the docstrings, we use single blank lines to separate sections (or inside sections). For example:
But in some cases two blank lines are incorrectly left:
This happen somehow often, but we should remove the extra blank lines, to keep the format consistent. In this issue we'll fix only the docstrings in
Series
having this problem.To get the list, this can be used (after fixing, the same command shouldn't report anything):
The text was updated successfully, but these errors were encountered: