For my data frame, which I'll call "data"
Class | Score
A | 15
A | 22
A | 18
B | 18
B | 25
B | 27
I'm trying to create a new column, which would basically be Score Divided By Class Average. I'm hoping to do this in as few lines as possible. Is it possible to do this in one or two lines of code and have it calculate the new column for a much larger data frame (ex: 100 rows).