diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2017-12-19 00:34:11 +0000 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2017-12-19 00:35:24 +0000 |
commit | 5f84facd682d63d54b6963e8f71993d5294b5de0 (patch) | |
tree | 4baed4b78ebcee6a7578620bee6cded2defffd33 /numpy/lib/nanfunctions.py | |
parent | c18ab2c3975c8fa8b59724fe6855c528d72fef8c (diff) | |
download | numpy-5f84facd682d63d54b6963e8f71993d5294b5de0.tar.gz |
DOC: give correct version of np.nansum change
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]
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index ca8c10031..22b295b9d 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -497,7 +497,7 @@ def nansum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue): Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. - In NumPy versions <= 1.8.0 Nan is returned for slices that are all-NaN or + In NumPy versions <= 1.9.0 Nan is returned for slices that are all-NaN or empty. In later versions zero is returned. Parameters |