Part 2 (5 points, coding task)
Do the following tasks in this part.
-
Create a DataFrame object called
df_2
that keeps the following columns indf_1
(all other columns indf_1
shall not appear indf_2
):-
Survived
-
Sex
-
Age
-
SibSp
-
Parch
-
Fare
-
Embarked
-
-
Print the first 5 rows of
df_2
. -
Print the shape of
df_2
.