Skip to content

Commit 31611a2

Browse files
committed
changed to callsuper
1 parent ed6b650 commit 31611a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __new__(cls, column, aggfunc, *args, **kwargs):
147147
if not isinstance(aggfunc, str):
148148
aggfunc = cls._get_wrapped_aggfunc(aggfunc, *args, **kwargs)
149149

150-
self = _BaseNamedAgg.__new__(cls, column, aggfunc)
150+
self = super(_BaseNamedAgg, cls).__new__(cls, column, aggfunc)
151151
self.original_aggfunc = original_aggfunc
152152
return self
153153

0 commit comments

Comments
 (0)