summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-07-29 20:04:28 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-07-29 20:21:57 +0200
commit778af02eb7c1668e751f435cd2a4952a362a0433 (patch)
treea195ec7efd70f97e81276c49fdeffdfc8a1ba666 /doc
parentc09d0ce0e11c94a83413c1bc6c9b2f5f40008a5a (diff)
downloadnumpy-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.rst5
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
============