January 2018
Beginner to intermediate
316 pages
7h 14m
English
Now that we have an understanding of the data we are working with, let's take a look at our missing values:
X.isnull().sum()>>>>boolean 1 city 1 ordinal_column 0 quantitative_column 1 dtype: int64
Here, we can see that three of our columns are missing values. Our course of action will be to impute these missing values.
If you recall, we implemented scikit-learn's Imputer class in a previous chapter to fill in numerical data. Imputer does have a categorical option, most_frequent, however ...
Read now
Unlock full access