Spaces:
Runtime error
Runtime error
tobiasaurer
commited on
Commit
•
4ff1ca9
1
Parent(s):
c0503dc
fixes minor bug
Browse files
pages/1 - Popularity-Based Recommender.py
CHANGED
@@ -32,7 +32,7 @@ def get_popular_recommendations(n, genres):
|
|
32 |
.sort_values('combined_rating', ascending=False)
|
33 |
.head(n)
|
34 |
[['title', 'avg_rating', 'genres']]
|
35 |
-
.rename(columns= {'title': 'Movie Title', 'avg_rating': 'Average Rating', 'genres': 'Genres'}
|
36 |
)
|
37 |
return recommendations
|
38 |
|
|
|
32 |
.sort_values('combined_rating', ascending=False)
|
33 |
.head(n)
|
34 |
[['title', 'avg_rating', 'genres']]
|
35 |
+
.rename(columns= {'title': 'Movie Title', 'avg_rating': 'Average Rating', 'genres': 'Genres'})
|
36 |
)
|
37 |
return recommendations
|
38 |
|