dask.dataframe.Series.str.decode
dask.dataframe.Series.str.decode¶
- dataframe.Series.str.decode(encoding, errors: str = 'strict')¶
Decode character string in the Series/Index using indicated encoding.
This docstring was copied from pandas.core.strings.accessor.StringMethods.decode.
Some inconsistencies with the Dask version may exist.
Equivalent to
str.decode()
in python2 andbytes.decode()
in python3.- Parameters
- encodingstr
- errorsstr, optional
- Returns
- Series or Index
Examples
For Series:
>>> ser = pd.Series([b'cow', b'123', b'()']) >>> ser.str.decode('ascii') 0 cow 1 123 2 () dtype: object