File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -1084,14 +1084,9 @@ def interpolate(
1084
1084
1085
1085
inplace = validate_bool_kwarg (inplace , "inplace" )
1086
1086
1087
- def check_int_bool (self , inplace ):
1088
- # Only FloatBlocks will contain NaNs.
1089
- # timedelta subclasses IntBlock
1090
- if (self .is_bool or self .is_integer ) and not self .is_timedelta :
1091
- if inplace :
1092
- return self
1093
- else :
1094
- return self .copy ()
1087
+ # Only FloatBlocks will contain NaNs. timedelta subclasses IntBlock
1088
+ if (self .is_bool or self .is_integer ) and not self .is_timedelta :
1089
+ return self if inplace else self .copy ()
1095
1090
1096
1091
# a fill na type method
1097
1092
try :
@@ -1100,9 +1095,6 @@ def check_int_bool(self, inplace):
1100
1095
m = None
1101
1096
1102
1097
if m is not None :
1103
- r = check_int_bool (self , inplace )
1104
- if r is not None :
1105
- return r
1106
1098
return self ._interpolate_with_fill (
1107
1099
method = m ,
1108
1100
axis = axis ,
@@ -1115,10 +1107,6 @@ def check_int_bool(self, inplace):
1115
1107
# validate the interp method
1116
1108
m = missing .clean_interp_method (method , ** kwargs )
1117
1109
1118
- r = check_int_bool (self , inplace )
1119
- if r is not None :
1120
- return r
1121
-
1122
1110
assert index is not None # for mypy
1123
1111
1124
1112
return self ._interpolate (
You can’t perform that action at this time.
0 commit comments