Skip to content

Commit 6a362d1

Browse files
committed
DOC: add link to SettingWithCopy warning/error message (GH7658)
1 parent fe25914 commit 6a362d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/generic.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1171,11 +1171,14 @@ def _check_setitem_copy(self, stacklevel=4, t='setting'):
11711171

11721172
if t == 'referant':
11731173
t = ("A value is trying to be set on a copy of a slice from a "
1174-
"DataFrame")
1174+
"DataFrame\n\n"
1175+
"See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy")
11751176
else:
11761177
t = ("A value is trying to be set on a copy of a slice from a "
11771178
"DataFrame.\nTry using .loc[row_index,col_indexer] = value "
1178-
"instead")
1179+
"instead\n\n"
1180+
"See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy")
1181+
11791182
if value == 'raise':
11801183
raise SettingWithCopyError(t)
11811184
elif value == 'warn':

0 commit comments

Comments
 (0)