def make_sic_div_lookup(sic):
    """Creates lookup between SIC class and division."""
    return (
        sic.assign(
            Division=lambda x: x.Class.str[0:2],
            Class=lambda x: x.Class.str.replace(".", ""),
        )
        .set_index("Class")["Division"]
        .to_dict()
    )