Cree una nueva columna con el primer carácter de String Pyspark

df = df.withColumn("first_n_char", df.colname.substr(1))
Sooi Versavel