Skip to content

Commit 8adb1a2

Browse files
committed
address2
1 parent ed83ddf commit 8adb1a2

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

doc/source/user_guide/indexing.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,9 +1776,5 @@ Examples:
17761776
17771777
#Avoiding Confusion:
17781778
#If you want positional assignment instead of index alignment:
1779-
# Convert Series to array/list for positional assignment
1780-
1781-
df['positional'] = s1.tolist()
1782-
1783-
# Or reset the Series index to match DataFrame index
1779+
# reset the Series index to match DataFrame index
17841780
df['s1_values'] = s1.reindex(df.index)

pandas/core/frame.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4217,8 +4217,7 @@ def __setitem__(self, key, value) -> None:
42174217
Set item(s) in DataFrame by key.
42184218
42194219
This method allows you to set the values of one or more columns in the
4220-
DataFrame using a key. The key can be a single column label, a list of
4221-
labels, or a boolean array. If the key does not exist, a new
4220+
DataFrame using a key. If the key does not exist, a new
42224221
column will be created.
42234222
42244223
Parameters

0 commit comments

Comments
 (0)