Skip to content
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: added docstring for storage_options in read_html #54815

Merged
merged 4 commits into from Aug 29, 2023

Conversation

rsm-23
Copy link
Contributor

@rsm-23 rsm-23 commented Aug 28, 2023

@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 28, 2023

@mroeschke docstring validation failing with

Redefining name from outer scope.........................................Failed

  • hook id: pylint
  • duration: 45.12s
  • exit code: 4

************* Module pandas.io.html
pandas/io/html.py:368:28: W0621: Redefining name 'doc' from outer scope (line 26) (redefined-outer-name)
pandas/io/html.py:599:28: W0621: Redefining name 'doc' from outer scope (line 26) (redefined-outer-name)
pandas/io/html.py:731:28: W0621: Redefining name 'doc' from outer scope (line 26) (redefined-outer-name)

one such function which shares the same name as the decorator is this:
def _parse_tables(self, doc, match, attrs):

Any suggestions? should I rename the parameter name?

@mroeschke
Copy link
Member

should I rename the parameter name?

Yes this sounds reasonable

@mroeschke mroeschke added the Docs label Aug 28, 2023
@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 29, 2023

@mroeschke can you please review this PR?

@mroeschke mroeschke added this to the 2.1 milestone Aug 29, 2023
@mroeschke mroeschke merged commit a478e21 into pandas-dev:main Aug 29, 2023
38 checks passed
@mroeschke
Copy link
Member

Thanks @rsm-23

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 29, 2023
phofl pushed a commit that referenced this pull request Aug 29, 2023
…_options` in `read_html`) (#54852)

Backport PR #54815: DOC: added docstring for `storage_options` in `read_html`

Co-authored-by: Rajat Subhra Mukherjee <raromukherjee@gmail.com>
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
…#54815)

* added docstring for storage_options

* renamed parameter name for _parse_tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOCS: the storage_options parameter is not included in the read_html docstring
2 participants