diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-07-26 11:58:43 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:26:47 -0600 |
commit | 0cc2e75cd160c44dba1dbcadfb530cfbe7d0cf98 (patch) | |
tree | bfd16498af4e50a9f70378737d30402f314ed439 /numpy/core/arrayprint.py | |
parent | 5e6d038bf75ef6c436e620e54158194c5d16070c (diff) | |
download | numpy-0cc2e75cd160c44dba1dbcadfb530cfbe7d0cf98.tar.gz |
ENH: missingdata: Get printing of NAs to work a little bit better
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 0786b2904..fcda825c7 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -583,7 +583,9 @@ class FloatFormat(object): import numeric as _nc err = _nc.seterr(invalid='ignore') try: - if isnan(x): + if isna(x): + return str(x) + elif isnan(x): if self.sign: return self.special_fmt % ('+' + _nan_str,) else: |