pyspark as type string code example Example: pyspark import stringtype from pyspark.sql.types import StringType