January 2020
Beginner to intermediate
372 pages
10h
English
We can cap many variables at a time, utilizing the open source package, Feature-engine. To do this, we need to load the libraries and the data as we did in step 1 and step 2 of the recipe in the How to do it... section. Next, we need to import Feature-engine:
from feature_engine.outlier_removers import Winsorizer
windsorizer = Winsorizer(distribution='gaussian', tail='both', fold=3, variables=['RM', 'LSTAT', 'CRIM'])
Read now
Unlock full access