File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 95
95
from pandas .compat .numpy import function as nv
96
96
from pandas .errors import (
97
97
AbstractMethodError ,
98
- ChainedAssignmentError ,
99
98
InvalidIndexError ,
100
99
SettingWithCopyError ,
101
100
SettingWithCopyWarning ,
102
- _chained_assignment_method_msg ,
103
101
)
104
102
from pandas .util ._decorators import doc
105
103
from pandas .util ._exceptions import find_stack_level
@@ -7089,12 +7087,13 @@ def fillna(
7089
7087
inplace = validate_bool_kwarg (inplace , "inplace" )
7090
7088
if inplace :
7091
7089
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
+ # )
7098
7097
7099
7098
value , method = validate_fillna_kwargs (value , method )
7100
7099
if method is not None :
You can’t perform that action at this time.
0 commit comments