-
-
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 flake8 issues in doc/source/groupby.rst #24178
Comments
@datapythonista I would like to give this issue a try :) |
please do, and let me know if you have questions or need help, thanks @LJArendse |
@datapythonista
Line 242 looks as follows:
The
Do you have any suggestions for how we can address this better? I don't think |
I think we already fixed it with a |
Thanks for the help, that's awesome will give it a try |
@datapythonista thanks for the help, found in
|
when flake8 finds a comment with a noqa in a line, it does not report as an error the specified error codes |
@datapythonista What do you suggest is the best way to fix the following errors:
The lines in question are:
It is a very good generic explanation of how to groupby an object. Should I keep it as is? or Should I rather show the same example but with an actual example dataframe and dummy data? |
@datapythonista A suggested actual example would be something like this: A groupby can be applied in the following ways to a pandas object
Below you can see groupby applied to a dataframe object
|
Looks good, but not a big fan of random data. May be you can use the same example as in: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.reset_index.html Also,
|
doc/source/groupby.rst:72:18: F821 undefined name 'obj' doc/source/groupby.rst:72:30: F821 undefined name 'key' doc/source/groupby.rst:73:18: F821 undefined name 'obj' doc/source/groupby.rst:73:30: F821 undefined name 'key' doc/source/groupby.rst:74:18: F821 undefined name 'obj' doc/source/groupby.rst:74:31: F821 undefined name 'key1' doc/source/groupby.rst:74:37: F821 undefined name 'key2'
@datapythonista Done, |
This reverts commit 41a2e47.
Closed by #24363 |
We didn't start validating the format of PEP8 and other code standards in the documentation examples until recently. We still have some files with errors, that we need to skip, and that we should fix, so we can start validating them.
The first step of this issue would be edit
setup.cfg
in the pandas home, and in theflake8-rst
section, remove from theexclude
list the filedoc/source/groupby.rst
After that, running the next command will report the errors in the file (note that syntax error usually prevent to validate other errors, and the list of errors to fix can become much longer when the syntax error is fixed (please make sure that you are using
flake8-rst
version0.7.0
or higher):Once all the errors are addressed, please open a pull request with the fixes in the file, and removing the file from
setup.cfg
. If you need to do something that feels wrong to fix an error, please ask in a comment to this issue. Please avoid other unrelated changes, which can be addressed in a separate pull request.The text was updated successfully, but these errors were encountered: