Description Usage Arguments Value References See Also Examples
Return a copy of str
where all characters have been mapped through
map
, where map
can be created with pystr_maketrans
.
1 | pystr_translate(str, map)
|
str |
A character vector. |
map |
A list of character mappings. |
A character vector.
https://docs.python.org/3/library/stdtypes.html#str.translate
1 2 | map = pystr_maketrans("abc", "123")
pystr_translate("a blue cat", map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.