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 <[email protected]>
  • Loading branch information
meeseeksmachine and jorisvandenbossche authored 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
Original file line number Diff line number Diff line change
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.