{ } Raw JSON

bundles / numpy 2.4.4 / numpy / _core / defchararray / chararray / translate

function

numpy._core.defchararray:chararray.translate

source: /numpy/_core/defchararray.py:1150

Signature

def translate(self, table, deletechars = None)

Summary

For each element in self, return a copy of the string where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table.

See also

char.translate

Aliases

  • numpy.char.chararray.translate