A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Series.str.decode.html below:

pandas.Series.str.decode — pandas 2.3.1 documentation

pandas.Series.str.decode#
Series.str.decode(encoding, errors='strict', dtype=None)[source]#

Decode character string in the Series/Index using indicated encoding.

Equivalent to str.decode() in python2 and bytes.decode() in python3.

Parameters:
encodingstr
errorsstr, optional

Specifies the error handling scheme. Possible values are those supported by bytes.decode().

dtypestr or dtype, optional

The dtype of the result. When not None, must be either a string or object dtype. When None, the dtype of the result is determined by pd.options.future.infer_string.

Added in version 2.3.0.

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4