statistical-rethinking-2023 icon indicating copy to clipboard operation
statistical-rethinking-2023 copied to clipboard

Issues with Lecture 11 code

Open johnsonrd58 opened this issue 6 months ago • 0 comments

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)

johnsonrd58 avatar Aug 22 '24 21:08 johnsonrd58