Skip to content

DOC: Enforce Numpy Docstring Validation for pandas.Grouper #58273

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

Merged
merged 5 commits into from
Apr 17, 2024

Conversation

tuhinsharma121
Copy link
Contributor

@mroeschke mroeschke added the Docs label Apr 16, 2024
@mroeschke
Copy link
Member

/preview

Copy link
Contributor

Website preview of this PR available at: https://pandas.pydata.org/preview/pandas-dev/pandas/58273/

Comment on lines 121 to 122
See Also
----------
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
See Also
----------
See Also
--------

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. The number of - should be equal to the number of characters in the text including whitespace. Fixed it.

Comment on lines 123 to 124
GroupBy : For grouping and aggregating relational data.
GroupByPlot : Class implementing the .plot attribute for groupby objects.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
GroupBy : For grouping and aggregating relational data.
GroupByPlot : Class implementing the .plot attribute for groupby objects.
Series.groupby : Apply a function groupby to a Series.
DataFrame.groupby : Apply a function groupby.

@@ -153,7 +153,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeTZDtype SA01" \
-i "pandas.DatetimeTZDtype.tz SA01" \
-i "pandas.DatetimeTZDtype.unit SA01" \
-i "pandas.Grouper PR02,SA01" \
-i "pandas.Grouper PR02" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have kept the PR02 else the CI fails.

@mroeschke mroeschke merged commit 86d6f2b into pandas-dev:main Apr 17, 2024
46 checks passed
@mroeschke
Copy link
Member

Thanks @tuhinsharma121

@mroeschke mroeschke added this to the 3.0 milestone Apr 17, 2024
@tuhinsharma121 tuhinsharma121 deleted the numpy-docstring-grouper branch April 18, 2024 09:05
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…v#58273)

* fixed PR02,SA01 in docstring for pandas.Grouper

* removed method pandas.Grouper

* restored parameters for Grouper with an extra indentation

* restored parameters and fixed See Also section

* removed SA01 for pandas.Grouper
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