I have a data like this:
I want to find the average salary of all employees- As, Bs, Cs and Ds. I would like to know if there is any short cut to do the same as the number of employees is very large in my dataset. I tried using if else, but it turned out to be impractical. Do let me know if the same can be done in any other programming language.