Answers for "__init__() got an unexpected keyword argument 'mental'"

1

__init__() got an unexpected keyword argument 'categorical_features'

from sklearn.preprocessing import LabelEncoder, OneHotEncoder
from sklearn.compose import ColumnTransformer

# Country column
ct = ColumnTransformer([("Country", OneHotEncoder(), [1])], remainder = 'passthrough')
X = ct.fit_transform(X)

# Male/Female
labelencoder_X = LabelEncoder()
X[:, 2] = labelencoder_X.fit_transform(X[:, 2])
Posted by: Guest on August-30-2020

Code answers related to "__init__() got an unexpected keyword argument 'mental'"

Code answers related to "Assembly"

Browse Popular Code Answers by Language