snowflake.snowpark.functions.chr¶
- snowflake.snowpark.functions.chr(col: Union[snowflake.snowpark.column.Column, str]) Column [source]¶
Converts a Unicode code point (including 7-bit ASCII) into the character that matches the input Unicode.
- Parameters:
col (ColumnOrName) – Integer Unicode code points.
- Returns:
The corresponding character for each code point.
- Return type:
Example:
>>> df = session.create_dataframe([83, 33, 169, 8364, None], schema=['a']) >>> df.select(df.a, chr(df.a).as_('char')).sort(df.a).show() ----------------- |"A" |"CHAR" | ----------------- |NULL |NULL | |33 |! | |83 |S | |169 |© | |8364 |€ | -----------------