{ } Raw JSON

bundles / numpy 2.4.4 / numpy / _core / defchararray / chararray / replace

function

numpy._core.defchararray:chararray.replace

source: /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