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
![data frame 2. [5pt] Display only the top 5 rows from the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f13c913d286_71266f13c90d2a91.jpg)
![dataset. There should be only 5 rows. 3. [5pt] Display only the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f13c91d8ae5_71366f13c91741eb.jpg)
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
Get step-by-step solutions from verified subject matter experts
