Replies: 1 comment
-
Hi @chipxx, this seems to be merely a typo. You use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I got this message, how do I resolve it? Thank you
`from sklearn.preprocessing import OneHotEncoder
from sklearn.compose import ColumnTransformer
categorical_features = [['Make', 'Colour', 'Doors']]
one_hot = OneHotEncoder()
transformer = ColumnTransformer([('one_hot',
one_hot,
categorical_features)],
remainder ='passthrought')
transformed_X = transformer.fit_transform(X)
transformed_X
`
InvalidParameterError: The 'remainder' parameter of ColumnTransformer must be a str among {'passthrough', 'drop'}, an object implementing 'fit' and 'transform' or an object implementing 'fit_transform' and 'transform'. Got 'passthrought' instead.
Beta Was this translation helpful? Give feedback.
All reactions