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 --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple 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.

Source Distribution

scikit-learn-pipeline-utils-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file scikit-learn-pipeline-utils-0.0.3.tar.gz.

File metadata

  • Download URL: scikit-learn-pipeline-utils-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for scikit-learn-pipeline-utils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 127b385bed6eaa483629f55b53a41fa5fbee2a7d13a5c742d7af0f3a45a254cf
MD5 960866cb6017350e6c7d7c8ae756097b
BLAKE2b-256 abf9838a5af036b201bc60672540947e15d470f53c9e378cff05a5f09f879044

See more details on using hashes here.

File details

Details for the file scikit_learn_pipeline_utils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: scikit_learn_pipeline_utils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for scikit_learn_pipeline_utils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45cd6d095c2f0db6e5b70f9f35986380ce0e9986cdf1757292badd7212407b0c
MD5 9bbc63a14983d841dd040b7bdd453344
BLAKE2b-256 5f3a442437fc999e4c51d3dde6d64e933ce4539d3b32ce830cb84128b7084852

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page