You are viewing documentation about an older version (1.3.0). View latest version

snowflake.snowpark.functions.char

snowflake.snowpark.functions.char(col: ColumnOrName) 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