convert string to int column pyspark 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()))