@@ -4420,7 +4420,7 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
4420
4420
4421
4421
# method is self.le for upper bound and self.ge for lower bound
4422
4422
if is_scalar (threshold ) and is_number (threshold ):
4423
- if method .__name__ == 'le' :
4423
+ if method .__name__ == 'le' :
4424
4424
return self ._clip_with_scalar (None , threshold , inplace = inplace )
4425
4425
else :
4426
4426
return self ._clip_with_scalar (threshold , None , inplace = inplace )
@@ -4445,7 +4445,6 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
4445
4445
finally :
4446
4446
return self .where (subset , threshold , axis = axis , inplace = inplace )
4447
4447
4448
-
4449
4448
def clip (self , lower = None , upper = None , axis = None , inplace = False ,
4450
4449
* args , ** kwargs ):
4451
4450
"""
@@ -4549,7 +4548,7 @@ def clip_upper(self, threshold, axis=None, inplace=False):
4549
4548
clipped : same type as input
4550
4549
"""
4551
4550
return self ._clip_with_one_bound (threshold , method = self .le ,
4552
- axis = axis , inplace = inplace )
4551
+ axis = axis , inplace = inplace )
4553
4552
4554
4553
def clip_lower (self , threshold , axis = None , inplace = False ):
4555
4554
"""
@@ -4573,7 +4572,7 @@ def clip_lower(self, threshold, axis=None, inplace=False):
4573
4572
clipped : same type as input
4574
4573
"""
4575
4574
return self ._clip_with_one_bound (threshold , method = self .ge ,
4576
- axis = axis , inplace = inplace )
4575
+ axis = axis , inplace = inplace )
4577
4576
4578
4577
def groupby (self , by = None , axis = 0 , level = None , as_index = True , sort = True ,
4579
4578
group_keys = True , squeeze = False , ** kwargs ):
0 commit comments