MCPcopy Create free account
hub / github.com/numpy/numpy / rstrip

Method rstrip

numpy/core/defchararray.py:2582–2592  ·  view source on GitHub ↗

For each element in `self`, return a copy with the trailing characters removed. See Also -------- char.rstrip

(self, chars=None)

Source from the content-addressed store, hash-verified

2580 return rsplit(self, sep, maxsplit)
2581
2582 def rstrip(self, chars=None):
2583 """
2584 For each element in `self`, return a copy with the trailing
2585 characters removed.
2586
2587 See Also
2588 --------
2589 char.rstrip
2590
2591 """
2592 return asarray(rstrip(self, chars))
2593
2594 def split(self, sep=None, maxsplit=None):
2595 """

Callers 15

validate_rst_syntaxFunction · 0.80
mainFunction · 0.80
nep_metadataFunction · 0.80
__getitem__Method · 0.80
_extendLineFunction · 0.80
_extendLine_prettyFunction · 0.80
recurserFunction · 0.80
__call__Method · 0.80
find_functionsFunction · 0.80
test_chararray_rstripMethod · 0.80
test_rstripMethod · 0.80
__next__Method · 0.80

Calls 2

rstripFunction · 0.85
asarrayFunction · 0.70

Tested by 3

test_chararray_rstripMethod · 0.64
test_rstripMethod · 0.64
test_extended_precisionFunction · 0.64