Hi there

I am performing a product recommendation system for retail. I have been able to compute the TF-IDF of user-items data frame in spark 2.0.

Now I need to transform the TF-IDF output in a data frame with columns (user_id, item_id, TF_IDF_ratings) in order to perform an ALS. But I have no clue how to do it.

Can anybody give me some help?

Thank you all.