Question: Task 0 : Please only keep relevant codes, and leave comments indicating the question number ( 1 0 % ) . You may lose points
Task : Please only keep relevant codes, and leave comments indicating the question number
You may lose points if incorrect answer and irrelevant codes are in your submission.
Task : Please write Python codes to do the following task.
pt Read the data file into Python as a pandas data frame
pt Display only the top rows from the dataset. There should be only rows.
pt Display only the selected columns survived pclass, sex, cabin There should be only columns.
pt Display only passenger ID and passenger name for survived people. The result should have three columns, ID name and survived.
pt Create a new dataframe and only save female records. Display the number of records of the new data frame.
pt Save the new data frame from item to a csv file.
pt Print survived people who are older than or in the upper socioeconomic status pclass is
pt I only want to do analysis on survived people. Then, please create one data frame called "dat with fare data, and create another data frame called "dat with three columns sex, age, pclass.
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
