-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DEPR: Enforce deprecation of removing axis from all groupby ops #57109
Conversation
# Conflicts: # pandas/tests/groupby/test_reductions.py
…h/pandas into enf_groupby_axis_1_ops
@@ -181,6 +181,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then | |||
pandas.core.groupby.SeriesGroupBy.rolling\ | |||
pandas.core.groupby.DataFrameGroupBy.hist\ | |||
pandas.core.groupby.DataFrameGroupBy.plot\ | |||
pandas.core.groupby.DataFrameGroupBy.corrwith\ |
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 was going to add groupby-specific documentation to this method (rather than just repeating the DataFrame version), but the more I look at it, the more I think we should just deprecate this method. Will make an issue.
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.
Opened #57158
# Conflicts: # doc/source/whatsnew/v3.0.0.rst
# a little trickery for aggregation functions that need an axis | ||
# argument | ||
if "axis" in sig.parameters: | ||
if kwargs.get("axis", None) is None or kwargs.get("axis") is lib.no_default: | ||
kwargs["axis"] = self.axis | ||
kwargs["axis"] = self.axis |
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.
Will this be able to be removed once we remove axis
from groupby
?
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.
Yep! That's coming next.
Thanks @rhshadrach |
…as-dev#57109) * DEPR: Enforce deprecation of removing axis from all groupby ops * Add note on fillna and cleanup * Doc fixups * Remove corrwith axis=1 test * Remove corrwith axis=1 test * Skip corrwith docstring validation
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.