Skip to main content

Custom Pipeline Transformers for Sklearn Pipelines

Project description

Helpful Package For Custom Transformers To Use In Sklearn Pipelines

Installation

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"))
    ])

print(pipeline.transform(df))
'''
expected result:
  col1
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.

Files for scikit-learn-pipeline-utils, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size scikit_learn_pipeline_utils-0.0.7-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size scikit-learn-pipeline-utils-0.0.7.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page