SyntaxFix
Write A Post
Hire A Developer
Questions
the solution was simple -
toDoublefunc = UserDefinedFunction(lambda x: float(x),DoubleType()) changedTypedf = joindf.withColumn("label",toDoublefunc(joindf['show']))