MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / replace

Method replace

site-packages/numpy/core/defchararray.py:2415–2425  ·  view source on GitHub ↗

For each element in `self`, return a copy of the string with all occurrences of substring `old` replaced by `new`. See also -------- char.replace

(self, old, new, count=None)

Source from the content-addressed store, hash-verified

2413 return asarray(partition(self, sep))
2414
2415 def replace(self, old, new, count=None):
2416 """
2417 For each element in `self`, return a copy of the string with all
2418 occurrences of substring `old` replaced by `new`.
2419
2420 See also
2421 --------
2422 char.replace
2423
2424 """
2425 return asarray(replace(self, old, new, count))
2426
2427 def rfind(self, sub, start=0, end=None):
2428 """

Callers 15

_convert_from_stringFunction · 0.45
sym2defFunction · 0.45
type2defFunction · 0.45
check_math_capabilitiesFunction · 0.45
_parse_einsum_inputFunction · 0.45
einsum_pathFunction · 0.45
einsumFunction · 0.45
_getconvFunction · 0.45
savetxtFunction · 0.45
_python2_bz2openFunction · 0.45
_python2_gzipopenFunction · 0.45

Calls 2

asarrayFunction · 0.70
replaceFunction · 0.70

Tested by 1

_show_system_infoMethod · 0.36