8000 BUG ensure monotonic property of lerp in numpy.percentile by glemaitre · Pull Request #15098 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG ensure monotonic property of lerp in numpy.percentile #15098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Prev Previous commit
Next Next commit
Update function_base.py
  • Loading branch information
glemaitre committed Dec 24, 2019
commit 045a7e34824dda6a7ea39616ac82dc17b71e047f
3 changes: 1 addition & 2 deletions numpy/lib/function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
ravel, nonzero, partition, mean, any, sum
)
from numpy.core.numerictypes import typecodes
from numpy.core.overrides import set_module
from numpy.core.overrides import set_module git push adrinjalali HEAD:fit_params/scaler
from numpy.core import overrides
from numpy.core.function_base import add_newdoc
from numpy.lib.twodim_base import diag
Expand Down Expand Up @@ -3948,7 +3948,6 @@ def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False,
r_above = r_above.squeeze(0)
r_below = r_below.squeeze(0)

# TODO: use the out argument to `np.where` once we add it (gh-XXXX)
np.copyto(r_above, r_below, where=weights_above < 0.5)

if out is not None:
Expand Down
0