pyspark.sql.functions.decode

pyspark.sql.functions.decode(col: ColumnOrName, charset: str) → pyspark.sql.column.Column

Computes the first argument into a string from a binary using the provided character set (one of ‘US-ASCII’, ‘ISO-8859-1’, ‘UTF-8’, ‘UTF-16BE’, ‘UTF-16LE’, ‘UTF-16’).