pop rec v2
Browse files
app.py
CHANGED
@@ -103,9 +103,8 @@ def popular_n_movies(n, genres):
|
|
103 |
.sort_values('combined_rating', ascending=False)
|
104 |
.head(n)
|
105 |
[['title', 'avg_rating', 'genres']]
|
106 |
-
.rename(columns= {'title': 'Movie Title', 'avg_rating': 'Average Rating', 'genres': 'Genres'})
|
107 |
-
)
|
108 |
-
pretty_recommendations = recommendations.style.pipe(make_pretty)
|
109 |
return pretty_recommendations
|
110 |
|
111 |
# movie/item based
|
|
|
103 |
.sort_values('combined_rating', ascending=False)
|
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).reset_index(drop=True)
|
|
|
108 |
return pretty_recommendations
|
109 |
|
110 |
# movie/item based
|