MCPcopy Index your code
hub / github.com/numpy/numpy / translate

Method translate

numpy/_core/defchararray.py:1157–1169  ·  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

1155 return asarray(title(self))
1156
1157 def translate(self, table, deletechars=None):
1158 """
1159 For each element in `self`, return a copy of the string where
1160 all characters occurring in the optional argument
1161 `deletechars` are removed, and the remaining characters have
1162 been mapped through the given translation table.
1163
1164 See Also
1165 --------
1166 char.translate
1167
1168 """
1169 return asarray(translate(self, table, deletechars))
1170
1171 def upper(self):
1172 """

Callers 6

english_lowerFunction · 0.80
english_upperFunction · 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