Skip to content

Commit ff91535

Browse files
authored
CLN: Remove unused is_datetimelike arg (#32919)
1 parent d6f6203 commit ff91535

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pandas/core/groupby/ops.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,7 @@ def _cython_operation(
525525
np.empty(out_shape, dtype=out_dtype), fill_value=np.nan
526526
)
527527
counts = np.zeros(self.ngroups, dtype=np.int64)
528-
result = self._aggregate(
529-
result, counts, values, codes, func, is_datetimelike, min_count
530-
)
528+
result = self._aggregate(result, counts, values, codes, func, min_count)
531529
elif kind == "transform":
532530
result = _maybe_fill(
533531
np.empty_like(values, dtype=out_dtype), fill_value=np.nan
@@ -590,14 +588,7 @@ def transform(self, values, how: str, axis: int = 0, **kwargs):
590588
return self._cython_operation("transform", values, how, axis, **kwargs)
591589

592590
def _aggregate(
593-
self,
594-
result,
595-
counts,
596-
values,
597-
comp_ids,
598-
agg_func,
599-
is_datetimelike: bool,
600-
min_count: int = -1,
591+
self, result, counts, values, comp_ids, agg_func, min_count: int = -1,
601592
):
602593
if agg_func is libgroupby.group_nth:
603594
# different signature from the others

0 commit comments

Comments
 (0)