pop rec v2
Browse files
app.py
CHANGED
@@ -104,8 +104,6 @@ def popular_n_movies(n, genres):
|
|
104 |
.head(n)
|
105 |
[['title', 'avg_rating', 'genres']]
|
106 |
.rename(columns= {'title': 'Movie Title', 'avg_rating': 'Average Rating', 'genres': 'Genres'}))
|
107 |
-
recommendations = recommendations[['Movie Title', 'Genres']]
|
108 |
-
recommendations.reset_index(drop=True, inplace=True)
|
109 |
pretty_recommendations = recommendations.style.pipe(make_pretty)
|
110 |
return pretty_recommendations
|
111 |
|
|
|
104 |
.head(n)
|
105 |
[['title', 'avg_rating', 'genres']]
|
106 |
.rename(columns= {'title': 'Movie Title', 'avg_rating': 'Average Rating', 'genres': 'Genres'}))
|
|
|
|
|
107 |
pretty_recommendations = recommendations.style.pipe(make_pretty)
|
108 |
return pretty_recommendations
|
109 |
|