Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimization And Data Science Trends And Applications 5th Airoyoung Workshop And Airo Phd School 2021 Joint Event

Authors: Adriano Masone ,Veronica Dal Sasso ,Valentina Morandi

1st Edition

3030862887, 978-3030862886

More Books

Students also viewed these Databases questions

Question

Networking is a two-way street. Discuss this statement.

Answered: 1 week ago