Skip to content

Commit d9665ca

Browse files
Backport PR #55911 on branch 2.1.x (DOC: convert outdated example of 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]>
1 parent 92ce245 commit d9665ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/whatsnew/v0.17.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -726,10 +726,10 @@ be broadcast:
726726
727727
or it can return False if broadcasting can not be done:
728728

729-
.. ipython:: python
730-
:okwarning:
729+
.. code-block:: ipython
731730
732-
np.array([1, 2, 3]) == np.array([1, 2])
731+
In [11]: np.array([1, 2, 3]) == np.array([1, 2])
732+
Out[11]: False
733733
734734
Changes to boolean comparisons vs. None
735735
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)