From 4f535ff399a84ba5bdad3630120d6c5b86689d6b Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 14 Sep 2013 11:33:19 -0600 Subject: DOC: Make documentation of nansum current with 1.9. Simply state that Numpy versions < 1.9 returned nan instead of zero for the sum of empty slices. --- numpy/lib/nanfunctions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/nanfunctions.py') diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 818119eee..44cc2b163 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -401,8 +401,8 @@ def nansum(a, axis=None, dtype=None, out=None, keepdims=0): Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. - FutureWarning: In Numpy versions <= 1.8 Nan is returned for slices that - are all-NaN or empty. In later versions zero will be returned. + In Numpy versions <= 1.8 Nan is returned for slices that + are all-NaN or empty. In later versions zero is returned. Parameters ---------- -- cgit v1.2.1