Skip to content

DOC: Standardize noncompliant docstrings in pandas/io/html.py (flake8-docstrings) #61944 #62007

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gumus-g
Copy link

@gumus-g gumus-g commented Jul 31, 2025

…-docstrings) #61944
This PR addresses docstring violations identified in #61944.

Changes made:

  • _build_xpath_expr: fixed D205 and D400
  • _build_doc: fixed D205, D400, and D401
  • _equals_tag and _handle_hidden_tables: fixed D400
  • Verified compliance using pydocstyle and flake8-docstrings

Notes:

search for attributes when using the lxml parser.
Build an XPath expression to simulate bs4's ability to pass in kwargs.

Search for attributes when using the lxml parser.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which violations does this change fix? cwiw, original and updated versions appear functionally equivalent

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, @arthurlw!
The changes in this PR resolve flake8-docstrings violations documented in #61944. Specifically:

  • _build_xpath_expr: addresses D205 (missing blank line after summary) and D400 (summary should end with a period)
  • _build_doc: resolves D205, D400, and D401 (summary should be in imperative mood)
  • _equals_tag and _handle_hidden_tables: fixed D400
    These are pure docstring updates — no logic or behavior changes. I validated using pydocstyle and flake8-docstrings with the project's config. Happy to clarify or expand if anything seems inconsistent!

@arthurlw arthurlw added Docs IO HTML read_html, to_html, Styler.apply, Styler.applymap labels Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Standardize noncompliant docstrings in pandas/io/html.py (flake8-docstrings)
3 participants