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

Fix missing blank line in DataFrame.round docstring (PEP 257 style) #61201

Closed
wants to merge 1 commit into from

Conversation

cureprotocols
Copy link

This PR fixes a minor style issue in the docstring of DataFrame.round().

What Changed:

  • Adds a missing blank line before the closing triple quotes (""")
  • Ensures compliance with PEP 257 and pandas' internal docstring style guidelines
  • Helps maintain clean parsing for automated doc tools and improves readability

This is a non-functional, formatting-only change intended to improve internal consistency across the API documentation.


✅ Checklist

  • closes #xxxx (No issue to close — docstring formatting only)
  • Tests added and passed (Not applicable)
  • All code checks passed (pre-commit and linting compliant)
  • Added type annotations (Not applicable)
  • Added an entry in doc/source/whatsnew/ (Not applicable for style-only fix)

Author: Michael Alexander Montoya (@cureprotocols)

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Why are you under the impression that a docstring should end with a blank line? A cursory look, I'm seeing none of our docstrings end like this.

@rhshadrach
Copy link
Member

Indeed, pre-commit identifies this as an issue. Closing.

@rhshadrach rhshadrach closed this Mar 30, 2025
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.

2 participants