DOC Small fix in compose.rst
@@ -486,7 +486,7 @@ the transformation::
[0.5, 0.5],
[1. , 0. ]])
-The :func:`~sklearn.compose.make_columntransformer` function is available
+The :func:`~sklearn.compose.make_column_transformer` function is available
to more easily create a :class:`~sklearn.compose.ColumnTransformer` object.
Specifically, the names will be given automatically. The equivalent for the
above example would be::
@@ -494,9 +494,11 @@ above example would be::
>>> from sklearn.compose import make_column_transformer
>>> column_trans = make_column_transformer(
... ('city', CountVectorizer(analyzer=lambda x: [x])),
- ... ('title', CountVectorizer()))
+ ... ('title', CountVectorizer()),
+ ... remainder=MinMaxScaler())
>>> column_trans # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
- ColumnTransformer(n_jobs=None, remainder='drop', sparse_threshold=0.3,
+ ColumnTransformer(n_jobs=None, remainder=MinMaxScaler(copy=True, ...),
+ sparse_threshold=0.3,
transformer_weights=None,
transformers=[('countvectorizer-1', ...)
