Series.str.
encode
Encode character string in the Series/Index using indicated encoding.
Equivalent to str.encode().
str.encode()
encoding (str) –
errors (str, optional) –
encoded
Series/Index of objects