Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- da = pd.read_csv("nhanes_2015_2016.csv")
- da["DMDEDUC2x"] = da.DMDEDUC2.replace({1: "<9", 2: "9-11", 3: "HS/GED", 4: "Some college/AA", 5: "College",
- 7: "Refused", 9: "Don't know"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement