Skip to main content

Installation

pip install polarsmith
# atau dengan uv:
uv add polarsmith

Quick Start

import polars as pl
from polarsmith import forge

df = pl.DataFrame({
    "age": [25, 30, 35, 40],
    "income": [50000, 60000, 70000, 80000],
    "churn": [0, 1, 0, 1]
})

df_out = forge(
    df,
    target="churn",
    strategy="smart",          # auto-detect fitur yang relevan
    config={
        "binning":      {"max_bins": 10},
        "interactions": ["age*income"],
        "encoding":     {"method": "james_stein"},
    }
)

Feature Matrix

Fitur Status
Auto Binning ✅ v0.1
Cyclical Features ✅ v0.1
Interaction Terms ✅ v0.1
James-Stein Enc. ✅ v0.1
WoE Encoding ✅ v0.1
Smart Detection ✅ v0.1
Pandas Compat ✅ v0.1

Performance

Benchmark pada MacBook Air M-series, Python 3.12:

Dataset Size Polarsmith Pandas equivalent Speedup
10,000 rows 0.0xs 0.0xs Xx
100,000 rows 0.0xs 0.0xs Xx
1,000,000 rows 0.0xs 0.0xs Xx

Polarsmith menggunakan Polars 1.x dengan lazy evaluation dan SIMD.

Release files for polarsmith 1.0.0

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

Source distribution (sdist)

Source distribution for polarsmith 1.0.0
File Size Uploaded
polarsmith-1.0.0.tar.gz 101.8 kB Details

Built distribution (wheel)

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

Total release size: 116.3 kB

Release files / polarsmith-1.0.0.tar.gz

Download URL polarsmith-1.0.0.tar.gz
Size 101.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74e10cf67175a4436ad036702a8075569bb3b1f894b130332c82617b494905de
BLAKE2b-256 checksum
How to use checksums
14264191ca1580053887c92924eefebd7ec503c6980675e209785ed765adcc4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 16, 2026.

Transparency log

Release files / polarsmith-1.0.0-py3-none-any.whl

Download URL polarsmith-1.0.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2630f0c75d5f7aad9dfd4a3b3623bb1221644affcaa91c11f86581a73773d497
BLAKE2b-256 checksum
How to use checksums
d661801be44ed4d4fe074212604b03a9ae5d7b18514905854303bbecff07dd76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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