From 6d43c4afe14fd4aebabad17d38096e8d86906f2b Mon Sep 17 00:00:00 2001 From: Hannah Date: Sun, 15 Apr 2018 11:17:47 +0200 Subject: [PATCH] DOC: Addition to pd.DataFrame.assign() docstring (#20085) --- pandas/core/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9e57579ddfc05..5e3b71a7d88fa 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3168,7 +3168,8 @@ def insert(self, loc, column, value, allow_duplicates=False): def assign(self, **kwargs): r""" Assign new columns to a DataFrame, returning a new object - (a copy) with all the original columns in addition to the new ones. + (a copy) with the new columns added to the original ones. + Existing columns that are re-assigned will be overwritten. Parameters ----------