Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC: Validate docstrings for pandas.Period.freq #62427

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
ahmednabiled wants to merge 2 commits into pandas-dev:main
base: main
Choose a base branch
Loading
from ahmednabiled:fix-period-freq-docstring

Conversation

Copy link

@ahmednabiled ahmednabiled commented Sep 24, 2025

closes #58063 (partially)

  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

This PR validates and fixes the docstring for pandas.Period.freq to conform with the NumPy docstring standard.

The following changes were made:
• Converted the freq attribute from a cdef readonly Cython attribute to a Python property to enable proper docstring documentation, resolving a GL08 validation error.
• Added a fully-featured docstring (including Returns, See Also, and Examples sections) to the .freq property following NumPy docstring standards.
• Removed the now-passing method from the ignore list in ci/code_checks.sh.

- Convert freq from cdef readonly to @Property with proper docstring
- Add comprehensive NumPy-style docstring following pandas standards
- Include Returns, See Also, and Examples sections
- Remove pandas.Period.freq GL08 from ci/code_checks.sh ignore list
Part of pandas-dev#58063 
- Remove trailing whitespace from blank lines
- Fix formatting to pass CI pre-commit hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@mroeschke mroeschke Awaiting requested review from mroeschke mroeschke is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

DOC: Enforce Numpy Docstring Validation (Parent Issue)
1 participant

AltStyle によって変換されたページ (->オリジナル) /