Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Last active May 14, 2020 06:54
Show Gist options
  • Save oscar-defelice/e2c423b6eaec8a714f4d207beb08dbca to your computer and use it in GitHub Desktop.
Save oscar-defelice/e2c423b6eaec8a714f4d207beb08dbca to your computer and use it in GitHub Desktop.
snippet of code for recommender systems
df_matrix = df_rating.pivot(index='UserId', columns='MovieId', values='Rating')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment