Skip to content

Commit 31e66fc

Browse files
committed
Used memoryview.shape instead of len
1 parent 9b55fb5 commit 31e66fc

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,7 +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
419+
assert values.shape[0] == N
420420
inter_methods = {
421421
'linear': INTERPOLATION_LINEAR,
422422
'lower': INTERPOLATION_LOWER,

0 commit comments

Comments
 (0)