Appendix
1. Fundamentals
Activity 1.01: Implementing Pandas Functions
- Open a new Jupyter notebook.
- Use pandas to load the Titanic dataset:
import pandas as pd
df = pd.read_csv(r'../Datasets/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')
The output will be as follows:
- We do not need the Unnamed: 0 column. We can remove the ...
Get The Supervised Learning Workshop now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.