I'm trying to calculate the rating difference by gender for each movie. (IMDB dataset)
This is the groupby method i've used:
df.groupby(['movie title', 'gender'])['rating'].mean() And the head:
I'd like to create a new dataframe with 2 columns of rating for each movie - for male and female.
For example, the first row will be like:
Thanks!

