File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 46
46
from pandas .core .index import Index , MultiIndex , CategoricalIndex
47
47
from pandas .core .arrays .categorical import Categorical
48
48
from pandas .core .internals import BlockManager , make_block
49
- from pandas .compat .numpy import _np_version_under1p13
50
49
51
50
from pandas .plotting ._core import boxplot_frame_groupby
52
51
@@ -1208,10 +1207,7 @@ def count(self):
1208
1207
1209
1208
mask = (ids != - 1 ) & ~ isna (val )
1210
1209
ids = ensure_platform_int (ids )
1211
- minlength = ngroups or 0
1212
- if _np_version_under1p13 and minlength == 0 :
1213
- minlength = None
1214
- out = np .bincount (ids [mask ], minlength = minlength )
1210
+ out = np .bincount (ids [mask ], minlength = ngroups or None )
1215
1211
1216
1212
return Series (out ,
1217
1213
index = self .grouper .result_index ,
You can’t perform that action at this time.
0 commit comments