Week 4 Assignmemt: Graphing Decisions
NESARC Dataset: Questions Selected As part of this assignment I will be considering association between the frequency of drinking alcohol during the time of abuse (: S2AQ21A: Explanatory Variable ) and whether or not the person suffered from one of the below cardiovascualar medical condition in last 12 months: Hardening of Arteries (S13Q6A1: Response Variable) High Blood Pressure (S13Q6A2: Response Variable) Heat Attack (S13Q6A7: Response Variable) All four variables are categorical. Univariate Bar Graps Since all variables are categorical, I have used Bar Graphs for Univariate plots. Below are the bar graphs for the four variables: Descriptions for the selected variables I have used the Pandas describe() method to describe the variables. Below is the output of the Python program: Total rows in NESARC dataset: 43093 Total columns in NESARC dataset: 3010 Description for how frequently people drank alcohol during the time of alcohol abuse: S2AQ21A count 34331.000000 unique...