I have the following pivot table in pandas:
Rating 1 2 3 4 5
MovieTitle
1-900 (1994) 2 0 1 2 0
101 Dalmatians (1996) 15 17 46 25 6
12 Angry Men (1957) 0 1 15 49 60
187 (1997) 5 8 13 11 4
I need to create a new column by calculating the weighted score. The formula will yield the score for the movie "101 Dalmatians (1996)" as such:
score = (15*1) + (17*2) + (46*3) + (25*4) + (6*5)
May I know how can I do that? Thanks