I have a dataframe as shown below
ID Score
A 20
B 60
A 40
C 50
B 100
C 60
C 40
A 10
A 10
A 70
From the above I would like to calculate the average score for each ID and total score.
Expected output:
ID Average_score Total_score
A 30 150
B 80 160
C 50 150