diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-02-12 11:43:39 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-02-12 11:43:39 -0700 |
commit | d9d266ada4d90fb87b61773bb760e8e7e5bb6ba9 (patch) | |
tree | 93dbb4f557b3220b750178f2e0ff489c87b8a960 /doc | |
parent | a9d694168eedc6fb433688d2265de4e196ed87d5 (diff) | |
download | numpy-d9d266ada4d90fb87b61773bb760e8e7e5bb6ba9.tar.gz |
Revert "BUG: make np.squeeze always return an array, never a scalar"
This reverts commit fa040cada9e832a6d23f359a4029953d14acca0a.
This change broke Pandas, and after consideration it has been decided
that the more correct change would be squeeze(<a scalar>) returns the
original scalar.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.13.0-notes.rst | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst index f7aed1913..3123e797d 100644 --- a/doc/release/1.13.0-notes.rst +++ b/doc/release/1.13.0-notes.rst @@ -76,11 +76,6 @@ obvious exception of any code that tries to directly call ``ndarray.__getslice__`` (e.g. through ``super(...).__getslice__``). In this case, ``.__getitem__(slice(start, end))`` will act as a replacement. -``np.squeeze`` always returns an array when passed a scalar -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Previously, this was only the case when passed a python scalar, and it did not -do array promotion when passed a numpy scalar. - C API ~~~~~ |