Part 7 (5 points, coding task)
Do the following tasks in this part.
-
Define
X
that keeps all features indf_6
and drops the label columnSurvived
. -
Define
y
that keeps the label columnSurvived
indf_6
only. -
Print the types of objects
X
andy
. -
Print the first five rows of
X
and the first five elements iny
.