Question: Load the pandas module. Load the dataset in titanic.csv as titanic. Create a new data frame, first _ south, by subsetting titanic to include instances

Load the pandas module.
Load the dataset in titanic.csv as titanic.
Create a new data frame, first_south, by subsetting titanic to include instances where a passenger is in the first class cabin (pclass column is 1) and boarded from Southampton (embarked column is S).
Create a new data frame, second_third, by subsetting titanic to include instances where a passenger is either in the second (pclass column is 2) or third class (pclass column is 3) cabin.
Using the template from this link, create the bar charts for the following:
passengers in first class who embarked in Southampton grouped by sex
passengers in second and third class grouped by survival status

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!