You need to convert pandas dataframe to surprise dataframe and yes, surprise dataframe must have three columns, user ids, item ids, and ratings in this order.
You need to convert pandas dataframe to surprise dataframe and yes, surprise dataframe must have three columns, user ids, item ids, and ratings in this order.
Changing the world, one post at a time. Sr Data Scientist, Toronto Canada. https://www.linkedin.com/in/susanli/