8000 DOC update example wording now that OneHotEncoder handles missing val… · thomasjpfan/scikit-learn@5223669 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5223669

Browse files
authored
DOC update example wording now that OneHotEncoder handles missing values (scikit-learn#23054)
1 parent d5070a0 commit 5223669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/compose/plot_column_transformer_mixed_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
case of datasets that contain heterogeneous data types, since we may want to
1212
scale the numeric features and one-hot encode the categorical ones.
1313
14-
In this example, the numeric data is standard-scaled after mean-imputation,
15-
while the categorical data is one-hot encoded after imputing missing values
16-
with a new category (``'missing'``).
14+
In this example, the numeric data is standard-scaled after mean-imputation. The
15+
categorical data is one-hot encoded via ``OneHotEncoder``, which
16+
creates a new category for missing values.
1717
1818
In addition, we show two different ways to dispatch the columns to the
1919
particular pre-processor: by column names and by column data types.

0 commit comments

Comments
 (0)
0