how to convert string column to int in python 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()))