My pandas dataframe looks like this:
In cell no 13, I have grouped the data on basis of Pclass and Survived. It shows clearly in the output that the ratio of No of people survived to No of people not survived is greatest for Pclass=1, then for Pclass=2 and least for Pclass=3. Now I want to show this (ratio) using a bar chart, where there is a bar for every category of Pclass attribute versus ratio of People survived to People not survived. But I am not able to figure out how to do so using matplotlib or seaborn.
Also how to plot a bar chart for every category of Pclass attribute with two values (0 and 1 for not survived and survived)?
