-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
TST: Test to verify behavior of groupby.std with no numeric columns and numeric_only=True #51761
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
TST: Test to verify behavior of groupby.std with no numeric columns and numeric_only=True #51761
Conversation
…pby-std-numeric-only-tests
…umanIjaz/pandas into groupby-std-numeric-only-tests
rhshadrach
left a comment
There was a problem hiding this 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!
pandas/core/groupby/groupby.py
Outdated
| numeric_only : bool, default False | ||
| Include only `float`, `int` or `boolean` data. | ||
| Include only `float`, `int` or `boolean` columns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe data is used here because this docstring is shared by DataFrameGroupBy and SeriesGroupBy; the latter does not have columns. I think this should be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I have reverted these changes. But should't we have separate docstrings for DataFrameGroupBy and SeriesGroupBy for more clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could template these docstrings or just separate them out entirely; but that should be a separate PR.
rhshadrach
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Thanks @numanijaz! |
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.