diff options
author | abel <aoun@cerfacs.fr> | 2021-10-21 09:59:53 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-04 14:50:27 -0500 |
commit | 8413b5abf27221fb2bea070871c7cd8f8da5519c (patch) | |
tree | 6ed671c13fb7cde5e9713f3d72ea8e0061d247ba /numpy/lib/nanfunctions.py | |
parent | 2a5422da7cb6759d75477738cc192fee3ca2a19c (diff) | |
download | numpy-8413b5abf27221fb2bea070871c7cd8f8da5519c.tar.gz |
MAINT: Clean following PR comments
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 710242d59..c3333a83a 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -1532,7 +1532,7 @@ def nanquantile( * (H&F 8): 'median_unbiased' * (H&F 9): 'normal_unbiased' - .. versionadded;: 1.22.0 + .. versionchanged:: 1.22.0 keepdims : bool, optional If this is set to True, the axes which are reduced are left in @@ -1729,12 +1729,8 @@ def _nanquantile_unchecked( return r -def _nanquantile_ureduce_func(a, - q, - axis=None, - out=None, - overwrite_input=False, - interpolation= "linear"): +def _nanquantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, + interpolation="linear"): """ Private function that doesn't support extended axis or keepdims. These methods are extended to this function using _ureduce @@ -1757,10 +1753,7 @@ def _nanquantile_ureduce_func(a, return result -def _nanquantile_1d(arr1d, - q, - overwrite_input=False, - interpolation= "linear"): +def _nanquantile_1d(arr1d, q, overwrite_input=False, interpolation="linear"): """ Private function for rank 1 arrays. Compute quantile ignoring NaNs. See nanpercentile for parameter usage |