KeyError, I don’t know why I want to make a function that take the average of a column but with two conditions: