Skip to content

Commit 390aa9d

Browse files
WillAydharisbal
authored and
harisbal
committed
Cleaned up return of _get_cython_function (pandas-dev#19561)
1 parent 5fa85e9 commit 390aa9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/groupby.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ def wrapper(*args, **kwargs):
22402240
raise NotImplementedError("function is not implemented for this"
22412241
"dtype: [how->%s,dtype->%s]" %
22422242
(how, dtype_str))
2243-
return func, dtype_str
2243+
return func
22442244

22452245
def _cython_operation(self, kind, values, how, axis, min_count=-1):
22462246
assert kind in ['transform', 'aggregate']
@@ -2304,12 +2304,12 @@ def _cython_operation(self, kind, values, how, axis, min_count=-1):
23042304
values = values.astype(object)
23052305

23062306
try:
2307-
func, dtype_str = self._get_cython_function(
2307+
func = self._get_cython_function(
23082308
kind, how, values, is_numeric)
23092309
except NotImplementedError:
23102310
if is_numeric:
23112311
values = _ensure_float64(values)
2312-
func, dtype_str = self._get_cython_function(
2312+
func = self._get_cython_function(
23132313
kind, how, values, is_numeric)
23142314
else:
23152315
raise

0 commit comments

Comments
 (0)