Skip to content

Commit 478267e

Browse files
thomasjpfanjnothman
authored andcommitted
DOC Small fix in compose.rst (scikit-learn#12487)
1 parent c2f17d0 commit 478267e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/modules/compose.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,17 +486,19 @@ the transformation::
486486
[0.5, 0.5],
487487
[1. , 0. ]])
488488

489-
The :func:`~sklearn.compose.make_columntransformer` function is available
489+
The :func:`~sklearn.compose.make_column_transformer` function is available
490490
to more easily create a :class:`~sklearn.compose.ColumnTransformer` object.
491491
Specifically, the names will be given automatically. The equivalent for the
492492
above example would be::
493493

494494
>>> from sklearn.compose import make_column_transformer
495495
>>> column_trans = make_column_transformer(
496496
... ('city', CountVectorizer(analyzer=lambda x: [x])),
497-
... ('title', CountVectorizer()))
497+
... ('title', CountVectorizer()),
498+
... remainder=MinMaxScaler())
498499
>>> column_trans # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
499-
ColumnTransformer(n_jobs=None, remainder='drop', sparse_threshold=0.3,
500+
ColumnTransformer(n_jobs=None, remainder=MinMaxScaler(copy=True, ...),
501+
sparse_threshold=0.3,
500502
transformer_weights=None,
501503
transformers=[('countvectorizer-1', ...)
502504

0 commit comments

Comments
 (0)