def map_lbls_id(skills, label, id, lookup):
    """Map the skills labels to the skills ids

    Args:
        skills (df): skills dataframe
        label (str): col to create, either 'class_lbl' or 'subclass_lbl'
        id (str): col to use for mapping, either 'class_id' or 'subclass_id'
        lookup (dict): to use for mapping - keys of ids, values of labels

    Returns:
        df: skills dataframe with additional class label column
    """
    skills[label] = skills[id].astype(str).map(lookup)
    if label == "class_id":
        skills[id] = skills[id].astype(int)
    if label == "subclass_id":
        skills[id] = skills[id].astype(float)
    return skills