In sklearn 0.20.3 documentation, https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html init has parameter drop, but when I use the same it's throwing a type error.
I didn't find any examples using the "drop" Keyword, most of the examples I have seen are using the older version of sklearn. And in some cases, they used ColumnTransfer (even that's for the older version of OnehotEncoder as it gives Future Warning)
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
labelencoder_X = LabelEncoder()
X[:, 0] = labelencoder_X.fit_transform(X[:, 0])
onehotencoder = OneHotEncoder(categories = [0],handle_unknown='ignore',drop=[0])
Expected results: should be able to compile the above code. Actual results: TypeError (init() got an unexpected keyword argument 'drop')