Skip to main content

pytest PyPI documentation

sklearo

/sklɛro/

A versatile Python package featuring scikit-learn like transformers for feature preprocessing, compatible with all kind of DataFrames thanks to narwhals.

Installation

Install from PyPI:

pip install sklearo

Usage

Here's a basic example of how to use the package with the WOEEncoder:

import pandas as pd
from sklearo.encoding import WOEEncoder


data = {
    "category": ["A", "A", "A", "B", "B", "B", "C", "C", "C"],
    "target": [1, 0, 0, 1, 1, 0, 1, 1, 0],
}
df = pd.DataFrame(data)
encoder = WOEEncoder()
encoder.fit(df[["category"]], df["target"])
encoded = encoder.transform(df[["category"]])
print(encoded)
   category
0 -0.916291
1 -0.916291
2 -0.916291
3  0.470004
4  0.470004
5  0.470004
6  0.470004
7  0.470004
8  0.470004

Features

  • ∫ Easy Integration: built on top of narwhals, meaning it can work with any kind of dataframe supported by narwhals like pandas, polars and much more!
  • 🌸 Scikit-learn Compatibility: Designed to work with scikit-learn pipelines.
  • ✅ tested against pandas and Polars dataframes.

Contributing

We welcome contributions! Please check the development guides for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, please open an issue on GitHub.

Why sklearo?

The name sklearo is a combination of sklearn and omni (o), which means all. This package is designed to work with all kinds of dataframes, hence the name sklearo.

Metadata

Release files for sklearo 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sklearo 0.2.5
File Size Uploaded Provenance Actions
sklearo-0.2.5.tar.gz 13.6 kB Without provenance Details for sklearo-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sklearo 0.2.5
File Interpreter ABI Platform Actions
sklearo-0.2.5-py3-none-any.whl Python 3 none any Details for sklearo-0.2.5-py3-none-any.whl

Total release size: 30.4 kB

Release files / sklearo-0.2.5.tar.gz

Download URL sklearo-0.2.5.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
64b115e6b4e73737c332d504706b9965ba5930e03f5077a61b1d248c98044e26
BLAKE2b-256 checksum
How to use checksums
669ecf2e4b77d3a85809c7fd461f63bb522b5f88038722323026eedc91944548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / sklearo-0.2.5-py3-none-any.whl

Download URL sklearo-0.2.5-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c6584afd92855018e65b5cdc29985e9138c1820f8c43bed86c736da026ca98e
BLAKE2b-256 checksum
How to use checksums
6c1ef8d2212836b49f4c66619533878570dcb92255d7d7ee7825f720c3d5e714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for sklearo 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page