Skip to content

Commit c9bb3ca

Browse files
committed
fix lint error
1 parent ef9cfcc commit c9bb3ca

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
@@ -4294,7 +4294,7 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
42944294

42954295
# method is self.le for upper bound and self.ge for lower bound
42964296
if is_scalar(threshold) and is_number(threshold):
4297-
if method.__name__ == 'le':
4297+
if method.__name__ == 'le':
42984298
return self._clip_with_scalar(None, threshold, inplace=inplace)
42994299
else:
43004300
return self._clip_with_scalar(threshold, None, inplace=inplace)
@@ -4319,7 +4319,6 @@ def _clip_with_one_bound(self, threshold, method, axis, inplace):
43194319
finally:
43204320
return self.where(subset, threshold, axis=axis, inplace=inplace)
43214321

4322-
43234322
def clip(self, lower=None, upper=None, axis=None, inplace=False,
43244323
*args, **kwargs):
43254324
"""
@@ -4423,7 +4422,7 @@ def clip_upper(self, threshold, axis=None, inplace=False):
44234422
clipped : same type as input
44244423
"""
44254424
return self._clip_with_one_bound(threshold, method=self.le,
4426-
axis=axis, inplace=inplace)
4425+
axis=axis, inplace=inplace)
44274426

44284427
def clip_lower(self, threshold, axis=None, inplace=False):
44294428
"""
@@ -4447,7 +4446,7 @@ def clip_lower(self, threshold, axis=None, inplace=False):
44474446
clipped : same type as input
44484447
"""
44494448
return self._clip_with_one_bound(threshold, method=self.ge,
4450-
axis=axis, inplace=inplace)
4449+
axis=axis, inplace=inplace)
44514450

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

0 commit comments

Comments
 (0)