ilkayisik commited on
Commit
9a4ab5b
1 Parent(s): 9c7f8e2

pop rec v2

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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