Table of Contents
Preface
1
Imputing Missing Data
Technical requirements
Removing observations with missing data
How to do it...
How it works...
Performing mean or median imputation
How to do it...
How it works...
Imputing categorical variables
How to do it...
How it works...
Replacing missing values with an arbitrary number
How to do it...
How it works...
Finding extreme values for imputation
How to do it...
How it works...
Marking imputed values
How to do it...
How it works...
Performing multivariate imputation by chained equations
How to do it...
How it works...
See also
Estimating missing data with nearest neighbors
How to do it...
How it works...
2
Encoding Categorical Variables
Technical requirements
Creating binary variables through one-hot ...
Get Python Feature Engineering Cookbook - Second Edition 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.