Skip to content

Commit d04b746

Browse files
HannahFerchjreback
authored andcommitted
DOC: Addition to pd.DataFrame.assign() docstring (#20085) (#20702)
1 parent 7f7f3d4 commit d04b746

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3177,7 +3177,8 @@ def insert(self, loc, column, value, allow_duplicates=False):
31773177
def assign(self, **kwargs):
31783178
r"""
31793179
Assign new columns to a DataFrame, returning a new object
3180-
(a copy) with all the original columns in addition to the new ones.
3180+
(a copy) with the new columns added to the original ones.
3181+
Existing columns that are re-assigned will be overwritten.
31813182
31823183
Parameters
31833184
----------

0 commit comments

Comments
 (0)