This is a pre-release version (2.5.0.dev0+git20251130.2de293a).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / _core / defchararray / chararray / replace

function

numpy._core.defchararray:chararray.replace

source: build-install/usr/lib/python3.14/site-packages/numpy/_core/defchararray.py:994

Signature

def replace(self, old, new, count = None)

Summary

For each element in self, return a copy of the string with all occurrences of substring old replaced by new.

See also

char.replace

Aliases

  • numpy.char.chararray.replace