Skip to content

Commit f1d74cb

Browse files
committed
BUG: adds stacklevel to warning call
1 parent 2dd9db5 commit f1d74cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,8 @@ def __setattr__(self, name, value):
33603360
warnings.warn("Pandas doesn't allow Series to be assigned "
33613361
"into nonexistent columns - see "
33623362
"https://pandas.pydata.org/pandas-docs/"
3363-
"stable/indexing.html#attribute-access")
3363+
"stable/indexing.html#attribute-access",
3364+
stacklevel=2)
33643365
object.__setattr__(self, name, value)
33653366

33663367
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)