diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-09-14 11:33:19 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-09-14 11:33:19 -0600 |
commit | 4f535ff399a84ba5bdad3630120d6c5b86689d6b (patch) | |
tree | 6b37dbdcdfa8459e8fd772ade458b49fe1d1b61c /numpy/lib/nanfunctions.py | |
parent | 3e80e2a6c740ea8c4053e2000db295d284bb95af (diff) | |
download | numpy-4f535ff399a84ba5bdad3630120d6c5b86689d6b.tar.gz |
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.
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 ---------- |