Skip to content

Commit 654c03f

Browse files
committed
BUG: updates warning message for clarity
1 parent 1c2439c commit 654c03f

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
@@ -3437,8 +3437,8 @@ def __setattr__(self, name, value):
34373437
object.__setattr__(self, name, value)
34383438
except (AttributeError, TypeError):
34393439
if isinstance(self, ABCDataFrame) and (is_list_like(value)):
3440-
warnings.warn("Pandas doesn't allow Series to be assigned "
3441-
"into nonexistent columns - see "
3440+
warnings.warn("Pandas doesn't allow columns to be "
3441+
"created via a new attribute name - see "
34423442
"https://pandas.pydata.org/pandas-docs/"
34433443
"stable/indexing.html#attribute-access",
34443444
stacklevel=2)

0 commit comments

Comments
 (0)