def str_translate(arr, table):
return _na_map(lambda x: x.translate(table), arr)<EOL>
Map all characters in the string through the given mapping table.
Equivalent to standard :meth:`str.translate`.

Parameters
----------
table : dict
    table is a mapping of Unicode ordinals to Unicode ordinals, strings, or
    None. Unmapped characters are left untouched.
    Characters mapped to None are deleted. :meth:`str.maketrans` is a
    helper function for making translation tables.

Returns
-------
Series or Index