Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a80b99c

Browse filesBrowse files
rththomasjpfanglemaitre
authored
DOC Fix versionchanged/versionadded in OneHotEncoder (#16562)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent d88ffab commit a80b99c
Copy full SHA for a80b99c

File tree

1 file changed

+4
-3
lines changed
Filter options

1 file changed

+4
-3
lines changed

‎sklearn/preprocessing/_encoders.py

Copy file name to clipboardExpand all lines: sklearn/preprocessing/_encoders.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ class OneHotEncoder(_BaseEncoder):
193193
194194
Read more in the :ref:`User Guide <preprocessing_categorical_features>`.
195195
196-
.. versionchanged:: 0.20
197-
198196
Parameters
199197
----------
200198
categories : 'auto' or a list of array-like, default='auto'
@@ -230,8 +228,11 @@ class OneHotEncoder(_BaseEncoder):
230228
- array : ``drop[i]`` is the category in feature ``X[:, i]`` that
231229
should be dropped.
232230
231+
.. versionadded:: 0.21
232+
The parameter `drop` was added in 0.21.
233+
233234
.. versionchanged:: 0.23
234-
Added option 'if_binary'.
235+
The option `drop='if_binary'` was added in 0.23.
235236
236237
sparse : bool, default=True
237238
Will return sparse matrix if set True else will return an array.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.