snowflake.snowpark.functions.unbase64¶
- snowflake.snowpark.functions.unbase64(e: Union[Column, str], alphabet: Optional[str] = None) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.0/snowpark-python/src/snowflake/snowpark/functions.py#L11376-L11403)¶
Decodes a Base64-encoded string to a string.
Example
>>> df = session.create_dataframe(["U25vd2ZsYWtl", "SEVMTE8="], schema=["input"]) >>> df.select(base64_decode_string(col("input")).alias("decoded")).collect() [Row(DECODED='Snowflake'), Row(DECODED='HELLO')]