statistical-rethinking-2023
statistical-rethinking-2023 copied to clipboard
Issues with Lecture 11 code
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)