pyspark.sql.functions.url_decode��

pyspark.sql.functions.url_decode(str: ColumnOrName) → pyspark.sql.column.Column[source]��

Decodes a str in ���application/x-www-form-urlencoded��� format using a specific encoding scheme.

New in version 3.5.0.

Parameters
strColumn or str

A column of string to decode.

Examples

>>>
>>> df = spark.createDataFrame([("https%3A%2F%2Fspark.apache.org",)], ["a"])
>>> df.select(url_decode(df.a).alias('r')).collect()
[Row(r='https://spark.apache.org')]