Series.str.
encode
Encode character string in the Series/Index using indicated encoding.
Equivalent to str.encode().
str.encode()