def filter_by_dept_abbrevs(frame, dept_list):
    """Uses the list of departments defined by the user to
    return those departments from the results frame"""
    return frame[frame['dept_acro'].isin(dept_list)]
