Answers for "typeerror: __init__() got an unexpected keyword argument 'categorical'"

0

typeerror: __init__() got an unexpected keyword argument 'column'

pip install jedi==0.17.2
Posted by: Guest on February-01-2021
0

__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 "typeerror: __init__() got an unexpected keyword argument 'categorical'"

Code answers related to "Assembly"

Browse Popular Code Answers by Language