February 2020
Beginner to intermediate
532 pages
9h 36m
English
import pandas as pd
df = pd.read_csv(r'../Datasets/titanic.csv')
# Have a look at the first 5 sample of the data
df.head()
The output will be as follows:

Figure 1.26: First five rows
df.describe(include='all')
The output will be as follows:

Figure 1.27: Output of describe()
Read now
Unlock full access