Part 4 (5 points, coding task)
Do the following tasks in this part.
-
Create a deep copy of
df_3, nameddf_4. -
In
df_4, create a new column calledGroupSize. Its value is equal toSibSp + Parch + 1. -
Print the first five rows of
df_3anddf_4. -
Print the shapes of
df_3anddf_4.