Exercises
Most of the exercises in each chapter don't depend on each other. However, if the exercises do depend on each other, this relationship will be stated clearly.
Chapter 1 – Fundamentals of Data Collection, Cleaning, and Preprocessing
Exercises related to Chapter 1, Fundamentals of Data Collection, Cleaning, and Preprocessing, are listed in this section.
Exercise 1 – Loading data
Load the auto-mpg data as a pandas DataFrame by using the pandas.read_csv()
function. This data can be found at https://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/.
Hint
You may find that the default argument fails to load the data properly. Search the document of the read_csv()
function, identify the problem, and find the solution.
Exercise 2 – Preprocessing
Once you've loaded the auto-mpg
data, preprocess the data like so:
- Identify the type of each column/feature as numerical or categorical.
- Perform min-max scaling...