def size(self):
ids, _, ngroup = self.group_info<EOL>ids = ensure_platform_int(ids)<EOL>if ngroup:<EOL><INDENT>out = np.bincount(ids[ids != -<NUM_LIT:1>], minlength=ngroup)<EOL><DEDENT>else:<EOL><INDENT>out = []<EOL><DEDENT>return Series(out,<EOL>index=self.result_index,<EOL>dtype='<STR_LIT>')<EOL>
Compute group sizes