-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
PR09 batch 4 #29466
PR09 batch 4 #29466
Conversation
Hello @HughKelley! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-11-08 14:41:27 UTC |
I'm unsure how to format line 133 in pandas/io/excel/_base.py. flake8 is picking up the space argument required to correctly format the list being inserted as an inappropriate indent. |
What was the issue you faced previously? |
Was adding indentation to the docstring while adding a period to a parameter description here: 020e253 it required changing the indentation argument to |
Hmm can you post the built HTML doc? Looks OK on stable docs wouldn't expect to have to change the indent https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html |
I was adding a period and thought the indentation should match throughout the string like below but if it's ok I'll undo that change. example = (
"""
summary
Parameters
----------
parameter_1 : str
Description.
"""
) changed to
|
@WillAyd Adding an indent to the doc_string as I did in 020e253 resolved that but required adding 4 more spaces to the separator argument in |
Are we talking about In any case I think OK to tweak slightly to get it to pass validation (i.e. adding text after bullets, or something to the effect) |
The original error i was trying to fix was the a missing period for |
This reverts commit 020e253.
pandas/core/tools/datetimes.py
Outdated
- If 'raise', then invalid parsing will raise an exception | ||
- If 'coerce', then invalid parsing will be set as NaT | ||
- If 'ignore', then invalid parsing will return the input | ||
Behaves as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this required to get validation to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove all this. The new version of the script doesn't fail if the description starts with a list. And we'll move to the new version of the script soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm @datapythonista if you care to take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @HughKelley, really nice PR.
Just a typo, and some additions that are not necessary, other than that looks perfect.
pandas/core/reshape/merge.py
Outdated
The output type will the be same as 'left', if it is a subclass | ||
of DataFrame. | ||
DataFrame | ||
The merged DataFrame The output type will the be same as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The merged DataFrame The output type will the be same as | |
The merged DataFrame output type will the be same as |
pandas/core/tools/datetimes.py
Outdated
- If 'raise', then invalid parsing will raise an exception | ||
- If 'coerce', then invalid parsing will be set as NaT | ||
- If 'ignore', then invalid parsing will return the input | ||
Behaves as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove all this. The new version of the script doesn't fail if the description starts with a list. And we'll move to the new version of the script soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to remove the remaining Behaves as:
and Behavior:
that would be great, but lgtm
ah thanks |
@WillAyd and @datapythonista checks are green. Thanks very much for the help on this one! |
Thanks a lot for helping fix the documentation @HughKelley |
chunk of #28602