Skip to content

Commit 3801bed

Browse files
authored
MAINT: Address NumPy DeprecationWarning (dask#12056)
1 parent d9b5c5b commit 3801bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dask/dataframe/partitionquantiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def process_val_weights(vals_and_weights, npartitions, dtype_info):
374374
left = np.searchsorted(q_weights, q_target, side="left")
375375
right = np.searchsorted(q_weights, q_target, side="right") - 1
376376
# stay inbounds
377-
np.maximum(right, 0, right)
377+
np.maximum(right, 0, out=right)
378378
lower = np.minimum(left, right)
379379
trimmed = trimmed_vals[lower]
380380

0 commit comments

Comments
 (0)