Skip to content

Commit 9b55fb5

Browse files
committed
Added cast to remove build warning
1 parent bdb5089 commit 9b55fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/groupby.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ def group_quantile(ndarray[float64_t] out,
416416
ndarray[int64_t] counts, non_na_counts
417417
ndarray[int64_t] sort_arr
418418

419+
assert <Py_ssize_t>len(values) == N
419420
inter_methods = {
420421
'linear': INTERPOLATION_LINEAR,
421422
'lower': INTERPOLATION_LOWER,
@@ -438,7 +439,6 @@ def group_quantile(ndarray[float64_t] out,
438439
non_na_counts[lab] += 1
439440

440441
# Get an index of values sorted by labels and then values
441-
assert len(values) == len(labels)
442442
order = (values, labels)
443443
sort_arr = np.lexsort(order).astype(np.int64, copy=False)
444444

0 commit comments

Comments
 (0)