Skip to content

Commit c881ca7

Browse files
committed
Raise
1 parent 2c834b0 commit c881ca7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pandas/core/generic.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@
9595
from pandas.compat.numpy import function as nv
9696
from pandas.errors import (
9797
AbstractMethodError,
98-
ChainedAssignmentError,
9998
InvalidIndexError,
10099
SettingWithCopyError,
101100
SettingWithCopyWarning,
102-
_chained_assignment_method_msg,
103101
)
104102
from pandas.util._decorators import doc
105103
from pandas.util._exceptions import find_stack_level
@@ -7089,12 +7087,13 @@ def fillna(
70897087
inplace = validate_bool_kwarg(inplace, "inplace")
70907088
if inplace:
70917089
if not PYPY and using_copy_on_write():
7092-
if sys.getrefcount(self) <= 3:
7093-
warnings.warn(
7094-
_chained_assignment_method_msg,
7095-
ChainedAssignmentError,
7096-
stacklevel=2,
7097-
)
7090+
raise ValueError(sys.getrefcount(self))
7091+
# if sys.getrefcount(self) <= 3:
7092+
# warnings.warn(
7093+
# _chained_assignment_method_msg,
7094+
# ChainedAssignmentError,
7095+
# stacklevel=2,
7096+
# )
70987097

70997098
value, method = validate_fillna_kwargs(value, method)
71007099
if method is not None:

0 commit comments

Comments
 (0)