I am facing following errors here. I have already update all library and im using vscode. But can't findout the solution of the problem.
from sklearn.preprocessing import LabelEncoder , OneHotEncoder
y=rooms_df['room type'].values
y_labelencoder = LabelEncoder ()
y = y_labelencoder.fit_transform (y)
y=y.reshape(-1,1)
onehotencoder = OneHotEncoder(categorical_features=[0])
Y= onehotencoder.fit_transform(y)
Y.shape
it says "OneHotEncoder.init() got an unexpected keyword argument 'categorical_features'" at line code
onehotencoder = OneHotEncoder(categorical_features=[0])
can u guys help me to solve it?