Skip to content

Commit 72a479d

Browse files
committed
BUG: updates warning message for clarity
1 parent d805001 commit 72a479d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3358,8 +3358,8 @@ def __setattr__(self, name, value):
33583358
object.__setattr__(self, name, value)
33593359
except (AttributeError, TypeError):
33603360
if isinstance(self, ABCDataFrame) and (is_list_like(value)):
3361-
warnings.warn("Pandas doesn't allow Series to be assigned "
3362-
"into nonexistent columns - see "
3361+
warnings.warn("Pandas doesn't allow columns to be "
3362+
"created via a new attribute name - see "
33633363
"https://pandas.pydata.org/pandas-docs/"
33643364
"stable/indexing.html#attribute-access",
33653365
stacklevel=2)

0 commit comments

Comments
 (0)