ilkayisik commited on
Commit
38b98dc
1 Parent(s): 9fed651

pop rec v2

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