cudf.core.column.string.StringMethods.url_decode#

StringMethods.url_decode() SeriesOrIndex[source]#

Returns a URL-decoded format of each string. No format checking is performed. All characters are expected to be encoded as UTF-8 hex values.

Returns:
Series or Index.

Examples

>>> import cudf
>>> s = cudf.Series(['A%2FB-C%2FD', 'e%20f.g', '4-5%2C6'])
>>> s.str.url_decode()
0    A/B-C/D
1      e f.g
2      4-5,6
dtype: object
>>> data = ["https%3A%2F%2Frapids.ai%2Fstart.html",
...     "https%3A%2F%2Fmedium.com%2Frapids-ai"]
>>> s = cudf.Series(data)
>>> s.str.url_decode()
0    https://rapids.ai/start.html
1    https://medium.com/rapids-ai
dtype: object