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, firstsouth, by subsetting titanic to include instances where a passenger is in the first class cabin pclass column is and boarded from Southampton embarked column is S
Create a new data frame, secondthird, by subsetting titanic to include instances where a passenger is either in the second pclass column is or third class pclass column is 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
