Answers for "pyspark cast column to long"

0

pyspark cast column to long

changedTypedf = joindf.withColumn("label", joindf["show"].cast("double"))
// types = ['BinaryType', 'BooleanType', 'ByteType', 'DateType', 
//          'DecimalType', 'DoubleType', 'FloatType', 'IntegerType', 
//          'LongType', 'ShortType', 'StringType', 'TimestampType']
Posted by: Guest on September-10-2020

Browse Popular Code Answers by Language