Skip to content

Commit 91343df

Browse files
author
tp
committed
changes according to comments
1 parent d65615b commit 91343df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ def count(self):
12081208

12091209
mask = (ids != -1) & ~isna(val)
12101210
ids = ensure_platform_int(ids)
1211-
minlength = ngroups or 0
1211+
minlength = ngroups
12121212
if _np_version_under1p13 and minlength == 0:
12131213
minlength = None
12141214
out = np.bincount(ids[mask], minlength=minlength)

0 commit comments

Comments
 (0)