Part 7 (5 points, coding task)
Do the following tasks in this part.
-
Define
Xthat keeps all features indf_6and drops the label columnSurvived. -
Define
ythat keeps the label columnSurvivedindf_6only. -
Print the types of objects
Xandy. -
Print the first five rows of
Xand the first five elements iny.