def get_assignment_id(course, assignment):
    "Takes a course object and the name of a Canvas assignment and returns the Canvas ID.\n    \n    Example:\n    course.get_assignment_id('worksheet_01')"
    assignments = get_assignments(course)
    assignments = assignments[['name', 'id']].query('name == @assignment')
    return assignments['id'].values[0]
Takes a course object and the name of a Canvas assignment and returns the Canvas ID.

Example:
course.get_assignment_id('worksheet_01')
def get_assignment_id(course, assignment):
    "Takes a course object and the name of a Canvas assignment and returns the Canvas ID.\n    \n    Example:\n    course.get_assignment_id('worksheet_01')"
    assignments = get_assignments(course)
    assignments = assignments[['name', 'id']].query('name == @assignment')
    return assignments['id'].values[0]