SyntaxFix
Write A Post
Hire A Developer
Questions
You could use cast(as int) after replacing NaN with 0,
cast
NaN
0
data_df = df.withColumn("Plays", df.call_time.cast('float'))