How can I convert a column in a Spark dataframe from string to array? I need this because the fpgroth algorithm needs an array to create a model.
df = spark.read.csv('kheiro/Stage/Model/itemsets.csv')
df.show()
Data:
The type of the column:
And here is the error: