-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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: overall improvement of docstrings #15580
Comments
How about writing docstrings for internal routines? In my admittedly brief experience, it is hard to know which chunk of code you should be using for whatever particular task. In part this is because The Now I realize that you have to be careful with this because methods change and "no docstring is better than a wrong docstring", but I still feel like a little bit more direction would be helpful. 😅 |
@ResidentMario Yes, of course, that is certainly something were pandas is often lacking, and contributions there are also welcome! |
Hi all, I guess I am trying to introduce myself and show my interest in helping. Maybe I am just checking if my plan is a good idea! (Sorry for the poorly written comment - English is not my first language!) 😀 |
@PukkaPad That sounds great! Certainly check out the contributing docs: http://pandas.pydata.org/pandas-docs/stable/contributing.html, and if you have any questions, ask here or on the pandas-dev gitter channel https://gitter.im/pydata/pandas |
Hi, @jorisvandenbossche !
My understanding is that I have to activate my environment (source activate pandas_dev) and then run python make.py html in order to Build the documentation. The text is not very clear to me, to be honest. But the requirements are installed on the pandas_dev environment, so it makes sense that I should activate it. I could be very wrong. So, I tried to run python make.py html `(pandas_dev) Marianas-MBP:doc MarianaSouza$ python make.py html
Is there something else I should do? Am I missing something obvious? I thought of creating a branch afterwards, once I find the document that needs help. I tried to run python setup.py build_ext --inplace --force with no success :( Thank you |
you need to run did that not work? |
That was what I was doing, running from pandas-mariana. I tried again And I get the PAckageNotFoundError, which seem to be an open issue: I would love to keep trying if I know what else I can do? I really want to have it working so I can help Should I uninstall miniconda and start over with anaconda instead? |
@PukkaPad Can you ask it at gitter? (to keep this issue about docstrings) https://gitter.im/pydata/pandas |
BTW, you can better use |
Signed-off-by: gabriel <gabrielvalerios@outlook.com>
@jorisvandenbossche - you mention that while all docstring examples are expected to be runable the pandas imports are not required. Could I suggest to still include it? (I've run into it when copy pasting an example from the API docs today. While it was trivial to see that why I got the error, it would have been more convenient if the import was included). |
Hi, I'd like to look into contributing to this. I've never made a PR before, and I'd love to get started. This looks like the kind of issue that I could actually help with :) EDIT: |
Hello! I was wondering if you're still accepting contributions on this. If it's alright, could I take up this issue to try contributing some docstrings? |
take |
we OK to close this issue? it's too generic and not-actionable at this point, and there's already the validate_docstrings checks for docstrings |
Yes please
On Wed, 19 Apr 2023 at 09:12, Marco Edward Gorelli ***@***.***> wrote:
we OK to close this issue? it's too generic and not-actionable at this
point, and there's already the validate_docstrings checks for docstrings
—
Reply to this email directly, view it on GitHub
<#15580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHWTZ5ZJ4TNL5B4SW3ZLZ3XB6NAFANCNFSM4DCN4ZNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Mariana
|
Yeah let's close in favor of more specific issues targeting specific docstrings |
This is a general issue, to have as a starting point for (new) contributors to improve the docstrings (many docstrings have missing parts, and improvements on this front are always welcome).
In general, some attention points for docstrings in pandas. Each docstring should have:
import pandas as pd
not needed to include) (xref Flesh out examples included in docstrings #3439)There are quite some docstrings that are still lacking on some of these points (in particular examples), and PRs to improve this are always welcome.
Approach: pick a function, check the docstring, and if needed make a PR with updates!
The text was updated successfully, but these errors were encountered: