Question : name 'StringType' is not defined
Answered by : matheus-batista
from pyspark.sql.types import StringType
Source : https://stackoverflow.com/questions/32284620/how-to-change-a-dataframe-column-from-string-type-to-double-type-in-pyspark | Last Update : Tue, 07 Jul 20