stringtype to integertype in pyspark code example Example: pyspark import stringtype from pyspark.sql.types import StringType