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
Release files for scikit-learn-pipeline-utils 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scikit-learn-pipeline-utils-0.0.2.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scikit_learn_pipeline_utils-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:5.6 kB
Release files / scikit-learn-pipeline-utils-0.0.2.tar.gz
| Download URL | scikit-learn-pipeline-utils-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
611b2d4b28b1da9b1a7acd076a5e7cbd86b05f4d301dd8386ae35d82e8c96fe0
|
|
BLAKE2b-256 checksum How to use checksums |
f1eb23b13dd05708ccc401d3ccdc6a67aa24642364cc37140612fb14eb341401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / scikit_learn_pipeline_utils-0.0.2-py3-none-any.whl
| Download URL | scikit_learn_pipeline_utils-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d32e0b99df80b8380f7c969d0f7c22e272456a272f851ecce6327bacb9def200
|
|
BLAKE2b-256 checksum How to use checksums |
6e6689e02431dde4bb3cd7f092a59a61a300fd1f0e69ca8a21394d31a59d2527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|