Challenge 2: Investigate the Titanic Dataset

Use Python and its libraries in this challenge to investigate the Titanic dataset. You’ll perform the following tasks.

Task 1: Understand the data

We’ve already loaded the Titanic dataset for you using pandas. To complete this task, perform the following operations:

  1. Display the size of the dataset.

  2. Display the last five rows.

  3. Display the data type of each column of the dataset.

Get hands-on with 1400+ tech skills courses.