def get_by_course_id(frame, course_ids):
    """Finds and reeturns a course or list of courses from the results
    frame"""
    if type(course_ids) is not list:
        course_ids = list(course_ids)
    return frame[frame['course_id'].isin(course_ids)]
