Skip to content

Commit c6c5096

Browse files
committed
WARN: bincount minlength deprecation warning
1 parent 80aad0d commit c6c5096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby.py

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

38613861
mask = (ids != -1) & ~isna(val)
38623862
ids = _ensure_platform_int(ids)
3863-
out = np.bincount(ids[mask], minlength=ngroups or None)
3863+
out = np.bincount(ids[mask], minlength=ngroups or 0)
38643864

38653865
return Series(out,
38663866
index=self.grouper.result_index,

0 commit comments

Comments
 (0)