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

Method translate

numpy/core/defchararray.py:2667–2679  ·  view source on GitHub ↗

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 -------- ch

(self, table, deletechars=None)

Source from the content-addressed store, hash-verified

2665 return asarray(title(self))
2666
2667 def translate(self, table, deletechars=None):
2668 """
2669 For each element in `self`, return a copy of the string where
2670 all characters occurring in the optional argument
2671 `deletechars` are removed, and the remaining characters have
2672 been mapped through the given translation table.
2673
2674 See Also
2675 --------
2676 char.translate
2677
2678 """
2679 return asarray(translate(self, table, deletechars))
2680
2681 def upper(self):
2682 """

Callers 11

english_lowerFunction · 0.80
english_upperFunction · 0.80
get_ptr_constantFunction · 0.80
get_ptr_mirrorFunction · 0.80
get_ptr_circularFunction · 0.80
english_upperFunction · 0.80
_str_term_unicodeMethod · 0.80
_str_term_unicodeMethod · 0.80

Calls 2

translateFunction · 0.85
asarrayFunction · 0.70

Tested by 1