Skip to content

Commit af66225

Browse files
DOC: convert outdated example of NumPy's broadcasting to literal code block (#55911)
1 parent 851fea0 commit af66225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/whatsnew/v0.17.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,10 +727,10 @@ be broadcast:
727727
728728
or it can return False if broadcasting can not be done:
729729

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

0 commit comments

Comments
 (0)