I'm currently working with a Cricket (a sport) dataset where I need to find the accumulated runs scored, balls bowled per year with the years count. Below is an excerpt of the dataset
I'm trying to aggregate as below, but I'm not able to frame the right piece of code for this
Please help