We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb5089 commit 9b55fb5Copy full SHA for 9b55fb5
pandas/_libs/groupby.pyx
@@ -416,6 +416,7 @@ def group_quantile(ndarray[float64_t] out,
416
ndarray[int64_t] counts, non_na_counts
417
ndarray[int64_t] sort_arr
418
419
+ assert <Py_ssize_t>len(values) == N
420
inter_methods = {
421
'linear': INTERPOLATION_LINEAR,
422
'lower': INTERPOLATION_LOWER,
@@ -438,7 +439,6 @@ def group_quantile(ndarray[float64_t] out,
438
439
non_na_counts[lab] += 1
440
441
# Get an index of values sorted by labels and then values
- assert len(values) == len(labels)
442
order = (values, labels)
443
sort_arr = np.lexsort(order).astype(np.int64, copy=False)
444
0 commit comments