Skip to content

Commit 626ddc7

Browse files
committed
CLN: don't hard code min_count in call to _libs.groupby.group_nth
1 parent ce719fd commit 626ddc7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,7 @@ def _aggregate(
603603
):
604604
if agg_func is libgroupby.group_nth:
605605
# different signature from the others
606-
# TODO: should we be using min_count instead of hard-coding it?
607-
agg_func(result, counts, values, comp_ids, rank=1, min_count=-1)
606+
agg_func(result, counts, values, comp_ids, rank=1, min_count=min_count)
608607
else:
609608
agg_func(result, counts, values, comp_ids, min_count)
610609

0 commit comments

Comments
 (0)