January 2020
Beginner to intermediate
372 pages
10h
English
We can winsorize many variables at the time by 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='quantiles', tail='both', variables=['RM', 'LSTAT', 'CRIM'])
Read now
Unlock full access