File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 9595from pandas .compat .numpy import function as nv
9696from pandas .errors import (
9797 AbstractMethodError ,
98- ChainedAssignmentError ,
9998 InvalidIndexError ,
10099 SettingWithCopyError ,
101100 SettingWithCopyWarning ,
102- _chained_assignment_method_msg ,
103101)
104102from pandas .util ._decorators import doc
105103from 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 :
You can’t perform that action at this time.
0 commit comments