Column Transformer with Heterogeneous Data Sources
Datasets can often contain components that require different feature extraction and processing pipelines. This scenario might occur when:
your dataset consists of heterogeneous data types (e.g. raster images and text captions),
your dataset is stored in a
pandas.DataFrameand different columns require different processing pipelines.
This example demonstrates how to use
ColumnTransformer on a dataset containing
different types of features. The choice of features is not particularly
helpful, but serves to illustrate the technique.
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause