Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Lecture 11 code #3

Open
johnsonrd58 opened this issue Aug 22, 2024 · 0 comments
Open

Issues with Lecture 11 code #3

johnsonrd58 opened this issue Aug 22, 2024 · 0 comments

Comments

@johnsonrd58
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant