# xarray.DataArray.str.translate¶

DataArray.str.translate(table)

Map characters of each string through the given mapping table.

Parameters

table (dict) – A a mapping of Unicode ordinals to Unicode ordinals, strings, or None. Unmapped characters are left untouched. Characters mapped to None are deleted. str.maketrans() is a helper function for making translation tables.

Returns

translated

Return type

same type as values