电影推荐与文本分析:从热门电影到文档聚类
1. 获取热门电影列表
为了获取热门电影列表,我们可以根据电影的受欢迎程度得分对电影数据集进行排序,然后选择一些最受欢迎的电影。以下是实现这一过程的代码:
pop_movies = df.sort_values(by='popularity', ascending=False)
pop_movies.head()
基于受欢迎程度得分和电影的趣味性,我们选择了以下热门电影:
popular_movies = ['Minions', 'Interstellar', 'Deadpool', 'Jurassic World',
'Pirates of the Caribbean: The Curse of the Black Pearl',
'Dawn of the Planet of the Apes', 'The Hunger Games: Mockingjay - Part 1',
'Terminator Genisys', 'Captain America: Civil War', 'The Dark Knight',
'The Martian', 'Batman v Superman: Dawn of Justice', 'Pulp Fiction',
'The Godfather', 'T
超级会员免费看
订阅专栏 解锁全文
10万+

被折叠的 条评论
为什么被折叠?



