Skip to main content

Custom Pipeline Transformers for Sklearn Pipelines

Project description

Helpful Package For Custom Transformers To Use In Sklearn Pipelines


pip install scikit-learn-pipeline-utils

Quick Start

from sklearn_pipeline_utils import DFSelector
from sklearn.pipeline import Pipeline
import pandas as pd

df = pd.DataFrame({
    "col1": ["a", "b", "a"],
    "col2": [1, 2, 3]

pipeline = Pipeline([
    ("dfselectcol1", DFSelector("col1"))

expected result:
0    a
1    b
2    a

Dataframe Transformers List

  1. DFSelector
  2. DFObjectSelector
  3. DFFeatureUnion
  4. DFImputer
  5. DFImputerMostFrequent
  6. DFOrdinalEncoder
  7. DFStandardScaler

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit-learn-pipeline-utils-0.0.7.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page