File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,17 @@ to support Pandas categorical types. Restricting input to homogeneous
127
127
types therefore reduces maintenance cost and encourages usage of efficient
128
128
data structures.
129
129
130
+ Note however that :class: `~sklearn.compose.ColumnTransformer ` makes it
131
+ convenient to handle heterogeneous pandas dataframes by mapping homogeneous subsets of
132
+ dataframe columns selected by name or dtype to dedicated scikit-learn transformers.
133
+
134
+ Therefore :class: `~sklearn.compose.ColumnTransformer ` are often used in the first
135
+ step of scikit-learn pipelines when dealing
136
+ with heterogeneous dataframes (see :ref: `pipeline ` for more details).
137
+
138
+ See also :ref: `sphx_glr_auto_examples_compose_plot_column_transformer_mixed_types.py `
139
+ for an example of working with heterogeneous (e.g. categorical and numeric) data.
140
+
130
141
Do you plan to implement transform for target y in a pipeline?
131
142
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
143
Currently transform only works for features X in a pipeline.
You can’t perform that action at this time.
0 commit comments