snowflake.snowpark.functions.char¶

snowflake.snowpark.functions.char(col: Union[Column, str]) → Column[source]¶

Converts a Unicode code point (including 7-bit ASCII) into the character that matches the input Unicode.

Example:

>>> df = session.create_dataframe([83, 33, 169, 8364, None], schema=['a'])
>>> df.select(df.a, char(df.a).as_('char')).sort(df.a).show()
-----------------
|"A"   |"CHAR"  |
-----------------
|NULL  |NULL    |
|33    |!       |
|83    |S       |
|169   |©       |
|8364  |€       |
-----------------
Copy