I have SparseVectors generated from IDF transformation that look like:
user='1234', idf=SparseVector(174, {0: 0.4709, 5: 0.8967, 7: 0.9625, 8: 0.9814,...})
I would like to explode this into something like:
|index|rating|user|
|0 |0.4709|1234|
|5 |0.8967|1234|
|7 |0.9625|1234|
|8 |0.9814|1234|
.
.
.
My objective is to take these index,value tuples and perform an ALS step.