Skip to content

Commit da2dac7

Browse files
committed
DOC: improved the docstring of pandas.Series.clip_upper improved
PEP8 corrections
1 parent 51f612c commit da2dac7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/generic.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5637,8 +5637,9 @@ def clip_upper(self, threshold, axis=None, inplace=False):
56375637
"""
56385638
Return copy of the input with values above given value(s) truncated.
56395639
5640-
It truncates values above a certain threshold. Threshold can be a single
5641-
value or an array, in the latter case it performs the truncation
5640+
It truncates values above a certain threshold. Threshold can be a
5641+
single value or an array, in the latter case it performs the
5642+
truncation
56425643
element-wise.
56435644
56445645
Parameters
@@ -5653,8 +5654,8 @@ def clip_upper(self, threshold, axis=None, inplace=False):
56535654
56545655
See Also
56555656
--------
5656-
clip : Return copy of input with values below/above thresholds truncated.
5657-
clip_lower : Return copy of input with values below given thresholds.
5657+
clip : Return input copy with values below/above thresholds truncated.
5658+
clip_lower : Return input copy input with values below given thresholds.
56585659
56595660
Returns
56605661
-------

0 commit comments

Comments
 (0)