pyspark.sql.functions.
ascii
Computes the numeric value of the first character of the string column.
New in version 1.5.