TypeError: __init__() got an unexpected keyword argument 'ragged' code example
Example 1: typeerror: __init__() got an unexpected keyword argument 'column'
pip install jedi==0.17.2
Example 2: __init__() got an unexpected keyword argument 'categorical_features'
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
from sklearn.compose import ColumnTransformer
ct = ColumnTransformer([("Country", OneHotEncoder(), [1])], remainder = 'passthrough')
X = ct.fit_transform(X)
labelencoder_X = LabelEncoder()
X[:, 2] = labelencoder_X.fit_transform(X[:, 2])