Skip to content

Commit 0e718bc

Browse files
author
Shashwat1001
committed
Comment changes
1 parent ec00318 commit 0e718bc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

doc/source/user_guide/dsintro.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,7 @@ Instead, the list is treated as a single object and the operation is performed c
655655

656656
.. ipython:: python
657657
658-
df = pd.DataFrame(np.arange(6).reshape(2, 3), columns=["A", "B", "C"])
659-
660-
df + [1, 2, 3] # Returns a Series of arrays, not a DataFrame
661-
662-
df + np.array([1, 2, 3]) # Correct broadcasting
663-
664-
df + pd.Series([1, 2, 3], index=["A", "B", "C"]) # Also correct
658+
df + np.array([1, 2, 3])
665659
666660
For explicit control over the matching and broadcasting behavior, see the
667661
section on :ref:`flexible binary operations <basics.binop>`.

0 commit comments

Comments
 (0)