Skip to content

Commit eddcbd1

Browse files
committed
Improving fix to bug pandas-dev#21624.
1 parent 3543449 commit eddcbd1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/groupby/groupby.py

-4
Original file line numberDiff line numberDiff line change
@@ -2349,11 +2349,7 @@ def size(self):
23492349
if ngroup:
23502350
out = np.bincount(ids[ids != -1], minlength=ngroup)
23512351
else:
2352-
out = ids
2353-
# Covers the edge case where only a null group exists
2354-
if self.result_index.shape[0] == 0:
23552352
out = []
2356-
23572353
return Series(out,
23582354
index=self.result_index,
23592355
dtype='int64')

0 commit comments

Comments
 (0)