April 2019
Intermediate to advanced
404 pages
7h 25m
English
This section is included to assist the students to perform the activities in the book. It includes detailed steps that are to be performed by the students to achieve the objectives of the activities.
Solution
import pandas as pd
df = pd.read_csv('titanic.csv')
Use the head() function on the dataset as follows:
# Have a look at the first 5 sample of the data
df.head()
The output will be as follows:

Use the describe function as follows:
df.describe(include='all') ...
Read now
Unlock full access