diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-29 20:04:28 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-29 20:21:57 +0200 |
commit | 778af02eb7c1668e751f435cd2a4952a362a0433 (patch) | |
tree | a195ec7efd70f97e81276c49fdeffdfc8a1ba666 /doc | |
parent | c09d0ce0e11c94a83413c1bc6c9b2f5f40008a5a (diff) | |
download | numpy-778af02eb7c1668e751f435cd2a4952a362a0433.tar.gz |
BUG: fix string type inconsistency between zeros and zeros_like
np.zeros for strings returns empty strings while np.zeros_like of a
string array creates strings containing an string 0.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.9.0-notes.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/1.9.0-notes.rst b/doc/release/1.9.0-notes.rst index e1e958e9d..c00f7f9d6 100644 --- a/doc/release/1.9.0-notes.rst +++ b/doc/release/1.9.0-notes.rst @@ -240,6 +240,11 @@ a problem cannot occur. This change was already applied to the 1.8.1 release. +``zeros_like`` for string dtypes now returns empty strings +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +To match the `zeros` function `zeros_like` now returns an array initialized +with empty strings instead of an array filled with `'0'`. + New Features ============ |