So I am working on this dataset.
I wanted to take one row and returns with 2-dimension tuples. For example, for row 0, it returns: [('Action', 7.9), ('Adventure', 7.9), ('Fantasy', 7.9), ('Sci-Fi', 7.9)]. So that every genre from the movie will be the same imdb score.
This is from a school project and I can't think of a way that this could be done. Can anyone help me?
Im sorry, for the lack of details in this question, I will try to lay out all the details now.
The dataset is movie_metadata.csv. I cant seem to attach the file here.
After i got the function I am supposed to apply the function to all the rows until i have a one list containing all 2-dimensional tuples. Then i would have to convert the list of tuples into a dataframe. Ideally, I want to create a new data set named 'genre_score' that has two columns: genre, and imdb_score. Each row will have only one genre and the IMDB rating of the movie from that genre.Then i would have to calculate the mean IMDB rating per genre and make the following graph.
I can probably figure something out with everything else except the function. Writing the function is the struggle for me.