xport module need to be installed.
https://pypi.org/project/xport/ Codes in the column names: https://wwwn.cdc.gov/nchs/nhanes/Search/variablelist.aspx?Component=Dietary
Variable Description lookup for 2015–2016: https://wwwn.cdc.gov/nchs/nhanes/search/variablelist.aspx?Component=Dietary&CycleBeginYear=2015
read nhanes demographics data
Read from SPSS XPT files as found on NHANES, USA website.
Column names are saved in a text file, and being read from there. Data are being read from XPT files.
import xport
f =…
f =