Which plot should I use for plotting discrete variable with binary variable?
I am two columns Age(discrete), and Purchase(binary). I want to visualize it to understand which age group is most interested in purchasing things. I was thinking of plotting something like a line graph on top of the histogram, where the line graph will show the trend of purchasing over the age group. I am not sure if it will be a good chart. Can you help me with its code or do you have any other good ideas for this kind of situation?
Topic matplotlib seaborn visualization pandas
Category Data Science