Answers for "how to convert column to integertype pyspark 2 plus"

2

pyspark convert float results to integer replace

data_df = data_df.withColumn("Plays", data_df["Plays"].cast(IntegerType()))
Posted by: Guest on May-09-2020

Code answers related to "how to convert column to integertype pyspark 2 plus"

Python Answers by Framework

Browse Popular Code Answers by Language