Skip to content

Issues with Lecture 11 code  #3

@johnsonrd58

Description

@johnsonrd58

TROLLEY['education_level'] = TROLLEY.edu.map(EDUCUATION_MAP)
TROLLEY['education'] = TROLLEY.education_level.map(EDUCUATION_MAP_R)

These two lines of code give all "nas"
im using python 3.12.4 with the pymc kernel in VS code

This code also does not work

EDUCATION_LEVEL_ID, EDUCATION_LEVEL = pd.factorize(TROLLEY.education_level, sort=True)
EDUCATION_LEVEL = [EDUCUATION_MAP_R[e] for e in EDUCATION_LEVEL]
N_EDUCATION_LEVELS = len(EDUCATION_LEVEL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions