pyspark cast interval to int 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()))