diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-08-19 19:58:59 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:26:58 -0600 |
commit | ade350ec3e5d4bb5f13a57791759204ecb66b987 (patch) | |
tree | ecc9540622b05e35becdab5902b11d2ca23da5b0 /numpy/core/arrayprint.py | |
parent | 32a8d7aa7bad890ccfdc0d2a5063ce674b7a9e43 (diff) | |
download | numpy-ade350ec3e5d4bb5f13a57791759204ecb66b987.tar.gz |
BUG: repr: Make NA line up in the float array repr like inf and nan
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 7e40e9386..ccfca78ec 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -610,7 +610,7 @@ class FloatFormat(object): err = _nc.seterr(invalid='ignore') try: if isna(x): - return str(x).replace('NA', _na_str, 1) + return self.special_fmt % (str(x).replace('NA', _na_str, 1),) elif isnan(x): if self.sign: return self.special_fmt % ('+' + _nan_str,) |