You have passed two separate lists to the functions, Instead of passing two separate lists, try group both 'salary', and 'education' in to a single list
groupby(["education", "salary"])