how to convert column to integertype pyspark 2 plus code example
Example: pyspark convert float results to integer replace
data_df = data_df.withColumn("Plays", data_df["Plays"].cast(IntegerType()))
data_df = data_df.withColumn("Plays", data_df["Plays"].cast(IntegerType()))