2025 USA-NA-AIO Round 1, Problem 3, Part 5

Part 5 (5 points, coding task)

Do the following tasks in this part.

  1. Remove columns SibSp and Parch in df_4, and save this new DataFrame object as df_5 (changes on df_4 should not be inplace).

  2. Print the first five rows of df_4 and df_5.

  3. Print the shapes of df_4 and df_5.

### WRITE YOUR SOLUTION HERE ###
df_5 = df_4.drop(columns=['SibSp', 'Parch'])

print(df_4.head())
print(df_5.head())

print(df_4.shape)
print(df_5.shape)

""" END OF THIS PART """