Skip to content

Conversation

Navya1707
Copy link
Contributor

xref #62437

Description
This PR replaces the @appender decorator with an inline docstring for the DataFrame.groupby() method as part of the effort to remove dynamic docstring generation in pandas.

Changes Made
Removed @appender(_shared_docs["groupby"]) decorator from DataFrame.groupby() in pandas/core/frame.py
Inlined the complete docstring directly into the method definition
No functional changes - only documentation improvement

Why This Change?
As described in #62437, removing these decorators:
Reduces indirection and improves code clarity for new contributors
Allows docstring standardization rules from Ruff to apply
Makes docstrings more maintainable

Testing
Verified pandas imports successfully
Confirmed DataFrame.groupby() functionality works correctly
Checked docstring renders properly

@mroeschke mroeschke added the Docs label Oct 13, 2025
@mroeschke mroeschke added this to the 3.0 milestone Oct 13, 2025
@mroeschke mroeschke merged commit cdebe0e into pandas-dev:main Oct 13, 2025
47 checks passed
@mroeschke
Copy link
Member

Thanks @Navya1707

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