-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Fix order of sections in Series docstrings #24058
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
Comments
Hi, I would like to work on this if it's ok, thanks. |
Thank you @YuechengWu, that's great. Let me know if you need help. And feel free to do it in more than one PR if you think it's too much for a single one (I think many of the items in the list reuse the same docstring, so the changes shouldn't be as long as they may look). |
@datapythonista Thanks. |
@datapythonista Hi Marc, do I use the command line to test for the errors? or can I still use Anaconda to test it? |
You should have a development environment. Instructions to set it up are here: https://python-sprints.github.io/pandas/guide/pandas_setup.html#instructions Then, in the command line (or Anaconda prompt) with the pandas-dev environment active, you should be able to run the command in the description from the root of the project. |
@datapythonista Hi Marc, when I run the command, it tells me '.' is not recognized as an internal or external command. I believe my environment is setup correctly. |
Can you copy here what you are running and what you are getting. Not sure if you have a space after the period, or something like that. But can't really tell without a screenshot or a copy of what you are running. |
@datapythonista This is what I am getting |
Sorry, couldn't see the image in my mobile. I guess this is windows, I don't know much about it, can you try without the Or try to |
Sorry @YuechengWu, seems like this issue has been addressed in #24126. Not sure if you could make any progress, but not worth working on it anymore. Closing as duplicate, as the other issue has been created for all the errors, not only the ones in Series. |
@datapythonista ok, thanks for letting me know |
For consistency and to make our users life easier, we try to keep the same order of the sections in docstrings.
The right order of the sections is the defined by the numpydoc standard: https://numpydoc.readthedocs.io/en/latest/format.html#sections
Checking for errors in pandas
Series
attributes, we find many cases where the order is wrong:We should change the order of the sections in these methods, so the call to the script doesn't report any error.
The text was updated successfully, but these errors were encountered: