The two columns: Sex(0 = female, 1 = male) Chest Pains(1 = low , 2 = normal , 3 = abnormal, 4 = high)
I tried to compare them using a histogram
hist(age,sex)
I get an error saying that I need unique xValues. I think this is due to Sex having the value 1 to represent male and also 1 represents chest pains for my other column.
Is there another way to compare two columns? My end goal is to see the males min, max and average chest pains (same for female).
Best Answer