We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88ffab commit a80b99cCopy full SHA for a80b99c
sklearn/preprocessing/_encoders.py
@@ -193,8 +193,6 @@ class OneHotEncoder(_BaseEncoder):
193
194
Read more in the :ref:`User Guide <preprocessing_categorical_features>`.
195
196
- .. versionchanged:: 0.20
197
-
198
Parameters
199
----------
200
categories : 'auto' or a list of array-like, default='auto'
@@ -230,8 +228,11 @@ class OneHotEncoder(_BaseEncoder):
230
228
- array : ``drop[i]`` is the category in feature ``X[:, i]`` that
231
229
should be dropped.
232
+ .. versionadded:: 0.21
+ The parameter `drop` was added in 0.21.
233
+
234
.. versionchanged:: 0.23
- Added option 'if_binary'.
235
+ The option `drop='if_binary'` was added in 0.23.
236
237
sparse : bool, default=True
238
Will return sparse matrix if set True else will return an array.
0 commit comments