@@ -869,6 +869,8 @@ def group_last(rank_t[:, :] out,
869869
870870 assert min_count == - 1 , " 'min_count' only used in add and prod"
871871
872+ # TODO(cython 3.0):
873+ # Instead of `labels.shape[0]` use `len(labels)`
872874 if not len (values) == labels.shape[0 ]:
873875 raise AssertionError (" len(index) != len(labels)" )
874876
@@ -960,6 +962,8 @@ def group_nth(rank_t[:, :] out,
960962
961963 assert min_count == - 1 , " 'min_count' only used in add and prod"
962964
965+ # TODO(cython 3.0):
966+ # Instead of `labels.shape[0]` use `len(labels)`
963967 if not len (values) == labels.shape[0 ]:
964968 raise AssertionError (" len(index) != len(labels)" )
965969
@@ -1254,6 +1258,8 @@ def group_max(groupby_t[:, :] out,
12541258
12551259 assert min_count == - 1 , " 'min_count' only used in add and prod"
12561260
1261+ # TODO(cython 3.0):
1262+ # Instead of `labels.shape[0]` use `len(labels)`
12571263 if not len (values) == labels.shape[0 ]:
12581264 raise AssertionError (" len(index) != len(labels)" )
12591265
@@ -1327,6 +1333,8 @@ def group_min(groupby_t[:, :] out,
13271333
13281334 assert min_count == - 1 , " 'min_count' only used in add and prod"
13291335
1336+ # TODO(cython 3.0):
1337+ # Instead of `labels.shape[0]` use `len(labels)`
13301338 if not len (values) == labels.shape[0 ]:
13311339 raise AssertionError (" len(index) != len(labels)" )
13321340
0 commit comments