Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DOC quantile q is a probability | Christian Lorentzen | 2023-04-04 | 1 | -4/+4 |
| | |||||
* | MAINT: Fix stacklevels for the new C dispatcher not adding one | Sebastian Berg | 2023-01-17 | 1 | -8/+8 |
| | |||||
* | BUG: Quantile function on complex number now throws an error (#22652) (#22703) | Matteo Raso | 2022-12-08 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | Since percentile is more or less identical to quantile, I also made it throw an error if it receives a complex input. I also made nanquantile and nanpercentile throw errors as well. * Made the changes recommended by seberg * Fixed a test for PR 22703 * Fixed tests for quantile * Shortened some more lines * Fixup more lines Co-authored-by: Sebastian Berg <sebastianb@nvidia.com> | ||||
* | BUG: `keepdims=True` is ignored if `out` is not `None` in `numpy.median()`, ↵ | Roy Smart | 2022-12-05 | 1 | -10/+4 |
| | | | | | | `numpy.percentile()`, and `numpy.quantile()`. Closes #22714, #22544. | ||||
* | DOC: fixed two more typos in docstrings | Gaëtan de Menten | 2022-09-28 | 1 | -2/+2 |
| | | | nanpercentile and nanquantile had the same typo I just fixed in percentile | ||||
* | MAINT, DOC: discard repeated words | Dimitri Papadopoulos | 2022-01-13 | 1 | -3/+2 |
| | |||||
* | DOC: Update percentile/quantile docs | Sebastian Berg | 2021-11-12 | 1 | -30/+42 |
| | | | | | | | Mainly fixes the method list slightly, tones down the warning a bit and fixes the link to the paper (I did not realize that the link failed to work due only because the reference was missing from nanquantile/nanpercentile). | ||||
* | DOC: Remove reference to paper from quantile `method` kwarg | Sebastian Berg | 2021-11-12 | 1 | -2/+2 |
| | | | | | Apparently, sphinx does not resolve references to footnotes from parameter descriptions. | ||||
* | API,DEP: Rename percentile/quantile `interpolation=` to `method=` | Sebastian Berg | 2021-11-12 | 1 | -41/+68 |
| | |||||
* | DOC: Remove non-existent alias | abel | 2021-11-08 | 1 | -4/+4 |
| | |||||
* | DOC: Refer to the quantile/percentile notes for nan versions | Sebastian Berg | 2021-11-04 | 1 | -200/+3 |
| | |||||
* | MAINT: Remove unnecessary import of _QuantileInterpolation | Sebastian Berg | 2021-11-04 | 1 | -1/+0 |
| | |||||
* | MAINT: Clean following PR comments | abel | 2021-11-04 | 1 | -11/+4 |
| | |||||
* | DOC: fix docstrings. | Charles Harris | 2021-11-04 | 1 | -156/+268 |
| | | | | | Hopefully fix the docstrings of percentile, nanpercentile, quantile, and nanquantile so that CircleCI passes. | ||||
* | MAINT, ENH [#10736] Add interpolation methods to quantile | abel | 2021-11-04 | 1 | -34/+178 |
| | | | | | | | | | | - Added the missing linear interpolation methods. - Updated the existing unit tests. - Added pytest.mark.xfail for boolean arrays See - https://github.com/numpy/numpy/pull/19857#issuecomment-919258693 - https://github.com/numpy/numpy/issues/19154 | ||||
* | ENH: Bring the `nan<x>` signatures up to parity with their `<x>`-based ↵ | Bas van Beek | 2021-10-04 | 1 | -35/+139 |
| | | | | | | | | | | | | | | counterparts * nanmin: initial & where * nanmax: initial & where * nanargmin: keepdims & out * nanargmax: keepdims & out * nansum: initial & where * nanprod: initial & where * nanmean: where * nanvar: where * nanstd: where | ||||
* | DOC: Typos found by codespell | Dimitri Papadopoulos | 2021-09-21 | 1 | -1/+1 |
| | |||||
* | BUG: Fixed an issue wherein `nanpercentile` and `nanquantile` would ignore ↵ | Bas van Beek | 2021-09-11 | 1 | -1/+2 |
| | | | | the dtype for all-nan arrays | ||||
* | MAINT: Let `_remove_nan_1d` attempt to identify nan-containing object arrays | Bas van Beek | 2021-09-05 | 1 | -2/+4 |
| | | | | Use the same approach as in numpy/numpy#9013 | ||||
* | MAINT: Copy the `_methods._std` code-path for handling `nanstd` object-arrays | Bas van Beek | 2021-09-04 | 1 | -6/+3 |
| | | | | https://github.com/numpy/numpy/blob/410a89ef04a2d3c50dd2dba2ad403c872c3745ac/numpy/core/_methods.py#L265-L270 | ||||
* | BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object ↵ | Bas van Beek | 2021-09-03 | 1 | -3/+20 |
| | | | | arrays | ||||
* | MAINT: Directly grab `nan` from the input array | Bas van Beek | 2021-05-22 | 1 | -5/+7 |
| | | | | Directly grab a nan-esque object from the input array, rather than constructing a new one from scratch | ||||
* | BUG: Fixed an issue wherein `_nanmedian_small` would fail for ↵ | Bas van Beek | 2021-05-22 | 1 | -2/+4 |
| | | | | `timedelta64`-based dtypes | ||||
* | BUG: Fixed an issue wherein `nanmedian` could return an array with the wrong ↵ | Bas van Beek | 2021-05-22 | 1 | -1/+3 |
| | | | | dtype | ||||
* | DOC: Nupydoc format space before `:` in Parameters | Matthias Bussonnier | 2021-01-31 | 1 | -1/+1 |
| | | | | Missing `s` in two spellings. | ||||
* | Fix docstring cross-referencing | Albert Villanova del Moral | 2020-09-04 | 1 | -9/+9 |
| | |||||
* | MAINT: Remove unnecessary 'from __future__ import ...' statements | Jon Dufresne | 2020-01-03 | 1 | -2/+0 |
| | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior. | ||||
* | PERF: only copy input array in _replace_nan() if there are nans to replace | Christopher Whelan | 2019-12-02 | 1 | -1/+2 |
| | |||||
* | ENH: add OO->? loops, use np.compare(a, b, dtype=bool), add comments | mattip | 2019-10-30 | 1 | -1/+1 |
| | |||||
* | WIP, DEP, ENH: finish richcompare changes from 1.10 | mattip | 2019-10-29 | 1 | -1/+1 |
| | |||||
* | DOC: fix output argument reference | mattip | 2019-10-15 | 1 | -15/+15 |
| | |||||
* | DOC: Fixed dtype docs for var, nanvar. | Isaac Virshup | 2019-08-27 | 1 | -1/+1 |
| | | | | | | | | | Docs incorrectly stated that the default output dtype was float32 when input array is of an integer dtype. However: ```python np.var(np.random.randint(0, 100, 1000)).dtype == np.dtype("f8") ``` | ||||
* | Update nanfunctions.py | He Jia | 2019-06-14 | 1 | -0/+1 |
| | |||||
* | BUG: Increment stacklevel for warnings to account for NEP-18 overrides (#13589) | Stephan Hoyer | 2019-05-20 | 1 | -9/+16 |
| | | | | | | | | | | | | | | * Increment stacklevel for warnings to account for NEP-18 overrides For NumPy functions that make use of `__array_function__`, the appropriate the stack level for warnings should generally be increased by 1 to account for the override function defined in numpy.core.overrides. Fixes GH-13329 * Update numpy/lib/type_check.py Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net> | ||||
* | ENH: add _nan_mask function | Tyler Reddy | 2019-01-18 | 1 | -0/+27 |
| | | | | | | | | | * add _nan_mask function and associated unit tests; this function is to be used to simplify reduction operations involving np.nan elements by using a mask with a ``where`` argument | ||||
* | MAINT: address several reviewer comments | Tyler Reddy | 2018-12-14 | 1 | -2/+2 |
| | |||||
* | TST, DOC: enable refguide_check | Tyler Reddy | 2018-12-14 | 1 | -49/+52 |
| | | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes | ||||
* | MAINT: set preferred __module__ for numpy functions | Stephan Hoyer | 2018-10-23 | 1 | -1/+6 |
| | |||||
* | ENH: __array_function__ for np.lib, part 1 | Stephan Hoyer | 2018-10-08 | 1 | -0/+76 |
| | | | | np.lib.arraypad through np.lib.nanfunctions | ||||
* | DOC: reduce warnings and cleanup redundant c-api documentation | mattip | 2018-08-14 | 1 | -7/+9 |
| | |||||
* | Merge pull request #10199 from chunweiyuan/quantile | Stephan Hoyer | 2018-04-23 | 1 | -2/+108 |
|\ | | | | | ENH: Quantile | ||||
| * | ENH: Adding np.quantile() and np.nanquantile(). #10199 | Chun-Wei Yuan | 2018-04-16 | 1 | -2/+108 |
| | | |||||
* | | DOC: clear up warnings, fix matplotlib plot | mattip | 2018-04-17 | 1 | -7/+8 |
|/ | |||||
* | DOC: Fix type of axis in nanfunctions (#10421) | Tobias Fischer | 2018-02-03 | 1 | -14/+14 |
| | |||||
* | MAINT: Avoid repeated validation of percentiles in nanpercentile | Eric Wieser | 2017-12-18 | 1 | -18/+27 |
| | | | | | | Previously, this would check the percentiles were 0 <= q <= 100 on every single slice of non-reduction axes. This also pulls the division by 100 to the top level, which makes things clearer, and also reduces the size of the stack trace | ||||
* | DOC: give correct version of np.nansum change | Matthew Brett | 2017-12-19 | 1 | -1/+1 |
| | | | | | | | nansum started returning 0 from all-nan slices in 1.9.0, according to my tests, not 1.8.1 or 1.8.2, which still return NaN. [skip ci] | ||||
* | DOC: Fixup percentile docstring, from review in gh-9213 | Eric Wieser | 2017-12-10 | 1 | -19/+14 |
| | | | | Updates the two docstrings to match. | ||||
* | Make warnings for nanmin and nanmax consistent | Erik Quaeghebeur | 2017-10-23 | 1 | -1/+1 |
| | |||||
* | DOX: Fix mistaken word in nanprod docstring (#9703) | Robert T. McGibbon | 2017-09-17 | 1 | -1/+1 |
| | |||||
* | MAINT: Use moveaxis instead of rollaxis internally (#9475) | Nico Schlömer | 2017-08-10 | 1 | -1/+1 |
| | | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone. |