Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Preprocess for categorical data

categorical_transformer = Pipeline(steps=[
    ('imputer', SimpleImputer(strategy='constant')),
    ('onehot', OneHotEncoder(handle_unknown='ignore'))
 
PREVIOUS NEXT
Tagged: #How #Preprocess #categorical #data
ADD COMMENT
Topic
Name
2+1 =