-
-
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: Enforce Numpy Docstring Validation | pandas.DataFrame #58065
Comments
opened a fix for pandas.DataFrame.where |
Going to remove |
Will work on |
Continue with |
…tamp, pandas.DataFrame.tz_convert #58065 (#58101) * Add See Also section to to_period method. * Add See Also section to to_timestamp method. * Add See Also section to tz_convert method. * fix typo in to_timestamp * Fix formatting of See Also * Remove fixed methods from code check ignore list. * Fix formatting * Revert accidentally included docstring changes. * fix merge issues * Fix pre commit hooks * Fix line break issues.
Working on |
Will work on |
Will work on |
Working on |
Working on:
|
working on:
|
working on
|
working on
|
I will check out:
|
I'll check out:
@mroeschke, @Aloqeely is there anything else I need to add? |
Hey, is this issue open? would like contribute as a beginner. Thank you |
Yes it's still open. Good luck! |
Hey, I'd like to contribute to this issue if it's still open |
Yes! You can see |
I will work on |
Is it only that the methods from the original issue post need to be checked? Or any methods in |
You can fix any method in that file.
Not sure what you mean by additional errors. |
Does the validate_docstrings.py validation not work for anyone else? I'm getting an error on line 217, stating that there isn't enough values to unpack (expected 4 got 1) for all of the docstrings I've checked. |
It works for me. Can you post the command you ran and the error message? |
take |
I'll work on |
Try to install flake8 in the virtual environment that you are working in. That fixed the issue for me. |
hi, I have a question. Is this issue only for pandas.DataFrame.xxxx methods or we can can use this to fix other as well. If there are no errors for pandas.DataFrame.xxx method, should we remove this from code_checks.sh ? e.g. pandas.DataFrae.copy says 'Docstring for "pandas.DataFrame.copy: correct. :) |
DOC: Enforce Numpy Docstring Validation (Parent Issue) #58063
Pandas has a script for validating docstrings in code_checks.sh. Currently, some methods fail some of these checks.
pandas.DataFrame
pandas/ci/code_checks.sh
Lines 82 to 134 in c468028
The task is:
take 1-5 methods
run:
scripts/validate_docstrings.py --format=actions <method-name>
example command:
scripts/validate_docstrings.py --format=actions pandas.Categorical.__array__
example output:
check if validation docstrings passes for those methods, and if it’s necessary fix the docstrings according to whatever error is reported. Note: We've chosen to ignore ES01 errors, these are not required to be fixed.
remove those methods from code_checks.sh if all errors are cleared and the docstring is correct, otherwise, remove the specific error that was fixed from the list of errors for that method.
commit, push, open pull request
Please don't comment
take
as multiple people can work on this issue. You also don't need to ask for permission to work on this, just comment on which methods are you going to work : )If you're new contributor, please check the contributing guide
thanks @datapythonista for the inspiration for this issue!
The text was updated successfully, but these errors were encountered: