File size: 598 Bytes
4fdddbb
 
 
 
b30ab55
4fdddbb
 
94b9600
b30ab55
4fdddbb
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
import pandas as pd


st.title("Movie Recommenders")
 
st.write("""
### Instructions
Check the Sidebar and choose a recommender that suits your purpose.  
""")

movies = pd.read_csv('https://raw.githubusercontent.com/tobiasaurer/recommender-systems/main/movie_data/movies.csv')
ratings = pd.read_csv('https://raw.githubusercontent.com/tobiasaurer/recommender-systems/main/movie_data/ratings.csv')

all_ratings = ratings.merge(movies, on='movieId')[['title', 'rating', 'userId']]
all_ratings_pivoted = all_ratings.pivot_table(index='userId', columns='title', values='rating')