Skip to content

Commit ef2dc76

Browse files
yl2526jreback
authored andcommitted
fix lint error
1 parent 91c2874 commit ef2dc76

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4420,7 +4420,7 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
44204420

44214421
# method is self.le for upper bound and self.ge for lower bound
44224422
if is_scalar(threshold) and is_number(threshold):
4423-
if method.__name__ == 'le':
4423+
if method.__name__ == 'le':
44244424
return self._clip_with_scalar(None, threshold, inplace=inplace)
44254425
else:
44264426
return self._clip_with_scalar(threshold, None, inplace=inplace)
@@ -4445,7 +4445,6 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
44454445
finally:
44464446
return self.where(subset, threshold, axis=axis, inplace=inplace)
44474447

4448-
44494448
def clip(self, lower=None, upper=None, axis=None, inplace=False,
44504449
*args, **kwargs):
44514450
"""
@@ -4549,7 +4548,7 @@ def clip_upper(self, threshold, axis=None, inplace=False):
45494548
clipped : same type as input
45504549
"""
45514550
return self._clip_with_one_bound(threshold, method=self.le,
4552-
axis=axis, inplace=inplace)
4551+
axis=axis, inplace=inplace)
45534552

45544553
def clip_lower(self, threshold, axis=None, inplace=False):
45554554
"""
@@ -4573,7 +4572,7 @@ def clip_lower(self, threshold, axis=None, inplace=False):
45734572
clipped : same type as input
45744573
"""
45754574
return self._clip_with_one_bound(threshold, method=self.ge,
4576-
axis=axis, inplace=inplace)
4575+
axis=axis, inplace=inplace)
45774576

45784577
def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
45794578
group_keys=True, squeeze=False, **kwargs):

0 commit comments

Comments
 (0)