Question: 1. [5pt] Read the data file into Python as a pandas data frame 2. [5pt] Display only the top 5 rows from the dataset. There

 1. [5pt] Read the data file into Python as a pandas
data frame 2. [5pt] Display only the top 5 rows from the
dataset. There should be only 5 rows. 3. [5pt] Display only the

1. [5pt] Read the data file into Python as a pandas data frame 2. [5pt] Display only the top 5 rows from the dataset. There should be only 5 rows. 3. [5pt] Display only the selected columns (survived, pclass, sex, cabin). There should be only 4 columns. 4. [5pt] Display only passenger ID and passenger name for survived people. The result should have three columns, ID, name and survived. 5. [5pt] Create a new dataframe and only save female records. Display the number of records of the new data frame. 6. [5pt] Save the new data frame from item 5 to a csv file. 7. [10pt] Print survived people who are older than 50 or in the upper socio-economic status (pclass is 1). 8. [10pt] I only want to do analysis on survived people. Then, please create one data frame called "dat1" with fare data, and create another data frame called "dat2" with three columns sex, age, pclass

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!