Question: Program language: Python Prompt: create a function that given a genre and a rating_range (i.e. [1.5, 3]), returns all the movies of that genre and
Program language: Python Prompt: create a function that given a genre and a rating_range (i.e. [1.5, 3]), returns all the movies of that genre and within that rating range sorted by average rating. demonstrate that your function works.
mock dataset:
UserID MovieID Rating Genre Title Year
1 111 5 Drama Greyhound 2021
2 121 3.5 Drama After We Collide 2021
3 134 2.1 Crime The Little Things 2021
4 546 1 Drama After We Collide 2021
5 1113 5 Drama After We Collide 2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
