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
- DFSelector
- DFObjectSelector
- DFFeatureUnion
- DFImputer
- DFImputerMostFrequent
- DFOrdinalEncoder
- 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
Built Distribution
File details
Details for the file scikit-learn-pipeline-utils-0.0.2.tar.gz
.
File metadata
- Download URL: scikit-learn-pipeline-utils-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611b2d4b28b1da9b1a7acd076a5e7cbd86b05f4d301dd8386ae35d82e8c96fe0 |
|
MD5 | db87376328f9d50f18387513451d77fd |
|
BLAKE2b-256 | f1eb23b13dd05708ccc401d3ccdc6a67aa24642364cc37140612fb14eb341401 |
File details
Details for the file scikit_learn_pipeline_utils-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: scikit_learn_pipeline_utils-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d32e0b99df80b8380f7c969d0f7c22e272456a272f851ecce6327bacb9def200 |
|
MD5 | b9dca7714adca7c65eefe7f7689d0642 |
|
BLAKE2b-256 | 6e6689e02431dde4bb3cd7f092a59a61a300fd1f0e69ca8a21394d31a59d2527 |