From 5f84facd682d63d54b6963e8f71993d5294b5de0 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Tue, 19 Dec 2017 00:34:11 +0000 Subject: 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] --- numpy/lib/nanfunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/nanfunctions.py') 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 -- cgit v1.2.1