Skip to content

Commit

Permalink
Backport PR #55911 on branch 2.1.x (DOC: convert outdated example of …
Browse files Browse the repository at this point in the history
…NumPy's broadcasting to literal code block) (#55912)

Backport PR #55911: DOC: convert outdated example of NumPy's broadcasting to literal code block

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
  • Loading branch information
meeseeksmachine and jorisvandenbossche committed Nov 10, 2023
1 parent 92ce245 commit d9665ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/whatsnew/v0.17.0.rst
Expand Up @@ -726,10 +726,10 @@ be broadcast:
or it can return False if broadcasting can not be done:

.. ipython:: python
:okwarning:
.. code-block:: ipython
np.array([1, 2, 3]) == np.array([1, 2])
In [11]: np.array([1, 2, 3]) == np.array([1, 2])
Out[11]: False
Changes to boolean comparisons vs. None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit d9665ca

Please sign in to comment.