Week 3 Assignment: Data Management
Variables Selected As part of this assignment, I have selected the following three variables from the NESARC dataset to perform data manipulation operations: Had hardening of arteries in last 12 months (S13Q6A1) Had high blood pressure in last 12 months (S13Q6A2) Had heart attack in last 12 months (S13Q6A7) Python Program to perform Data Management Below is the Python program that I used to perform data management operations on the selected variables: import pandas import numpy # setting options so that pandas data do not get truncated data = pandas.read_csv('nesarc_pds.csv', low_memory=False) print (f"Total rows in NESARC dataset: {len(data)}") #number of observations (rows) print (f"Total columns in NESARC dataset: {len(data.columns)}") # number of variables (columns) # column names colHard...