@@ -4294,7 +4294,7 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
4294
4294
4295
4295
# method is self.le for upper bound and self.ge for lower bound
4296
4296
if is_scalar (threshold ) and is_number (threshold ):
4297
- if method .__name__ == 'le' :
4297
+ if method .__name__ == 'le' :
4298
4298
return self ._clip_with_scalar (None , threshold , inplace = inplace )
4299
4299
else :
4300
4300
return self ._clip_with_scalar (threshold , None , inplace = inplace )
@@ -4319,7 +4319,6 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
4319
4319
finally :
4320
4320
return self .where (subset , threshold , axis = axis , inplace = inplace )
4321
4321
4322
-
4323
4322
def clip (self , lower = None , upper = None , axis = None , inplace = False ,
4324
4323
* args , ** kwargs ):
4325
4324
"""
@@ -4423,7 +4422,7 @@ def clip_upper(self, threshold, axis=None, inplace=False):
4423
4422
clipped : same type as input
4424
4423
"""
4425
4424
return self ._clip_with_one_bound (threshold , method = self .le ,
4426
- axis = axis , inplace = inplace )
4425
+ axis = axis , inplace = inplace )
4427
4426
4428
4427
def clip_lower (self , threshold , axis = None , inplace = False ):
4429
4428
"""
@@ -4447,7 +4446,7 @@ def clip_lower(self, threshold, axis=None, inplace=False):
4447
4446
clipped : same type as input
4448
4447
"""
4449
4448
return self ._clip_with_one_bound (threshold , method = self .ge ,
4450
- axis = axis , inplace = inplace )
4449
+ axis = axis , inplace = inplace )
4451
4450
4452
4451
def groupby (self , by = None , axis = 0 , level = None , as_index = True , sort = True ,
4453
4452
group_keys = True , squeeze = False , ** kwargs ):
0 commit comments