Skip to content

Commit

Permalink
MAINT, ENH [numpy#10736] Add interpolation methods to quantile
Browse files Browse the repository at this point in the history
- Added the missing linear interpolation methods.
- Updated the existing unit tests.

- Added pytest.mark.xfail for boolean arrays
See
- numpy#19857 (comment)
- numpy#19154
  • Loading branch information
bzah committed Oct 6, 2021
1 parent 17c3a6b commit 0d6f55e
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 194 deletions.
8 changes: 8 additions & 0 deletions doc/release/upcoming_changes/19857.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Add new linear interpolation methods for ``quantile`` and ``percentile``
------------------------------------------------------------------------

``quantile`` and ``percentile`` now have 13 linear interpolation methods,
nine of which can be found in the scientific literature.
The remaining methods are NumPy specific and are kept for backwards
compatibility. The default is "inclusive" (method 7), whose behavior is equivalent
to the former default "linear".

0 comments on commit 0d6f55e

Please sign in to comment.