-
-
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
Fix Up Typing in GroupBy #26089
Fix Up Typing in GroupBy #26089
Conversation
@@ -179,25 +179,25 @@ def _post_process_cython_aggregate(self, obj): | |||
obj = obj.swapaxes(0, 1) | |||
return obj | |||
|
|||
def aggregate(self, arg, *args, **kwargs): | |||
def aggregate(self, func, *args, **kwargs): |
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.
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.
this is ok, pls add a note in the whatsnew about this though
Codecov Report
@@ Coverage Diff @@
## master #26089 +/- ##
===========================================
- Coverage 91.96% 40.75% -51.21%
===========================================
Files 175 175
Lines 52412 52447 +35
===========================================
- Hits 48200 21376 -26824
- Misses 4212 31071 +26859
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26089 +/- ##
==========================================
- Coverage 91.99% 91.98% -0.01%
==========================================
Files 175 175
Lines 52384 52387 +3
==========================================
- Hits 48189 48187 -2
- Misses 4195 4200 +5
Continue to review full report at Codecov.
|
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.
merge master as well
doc/source/whatsnew/v0.25.0.rst
Outdated
@@ -218,6 +218,7 @@ Other API Changes | |||
- :meth:`Timestamp.strptime` will now rise a ``NotImplementedError`` (:issue:`25016`) | |||
- Comparing :class:`Timestamp` with unsupported objects now returns :py:obj:`NotImplemented` instead of raising ``TypeError``. This implies that unsupported rich comparisons are delegated to the other object, and are now consistent with Python 3 behavior for ``datetime`` objects (:issue:`24011`) | |||
- Bug in :meth:`DatetimeIndex.snap` which didn't preserving the ``name`` of the input :class:`Index` (:issue:`25575`) | |||
- The ``arg`` argument in :meth:`pandas.core.groupby.DataFrameGroupBy.agg` has been renamed to ``func`` to match the signature of its superclass (:issue:`26089`) |
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 would remove the work superclass; this is unknown to the user
thanks @WillAyd |
More typing cleanups
Original failures: