Skip to main content

polars-learn

Native Polars feature engineering, schema contracts, and row-level value checks inside scikit-learn pipelines. For Python users who want the same preparation path during training and prediction: compose ordered expressions, validate declared or learned schemas, and select model columns. Supports eager and lazy Polars frames and optional pandas conversion.

Installation

Requires Python 3.11+, Polars 1.20+, scikit-learn 1.6+, NumPy 1.24+, and cloudpickle 3+. Dependencies are installed automatically.

pip install polars-learn
# Optional pandas input/output support:
pip install 'polars-learn[pandas]'

Quick start

import polars as pl

from polars_learn import FeatureEngineer, FeatureSpec

orders = pl.DataFrame({"price": [10.0, 20.0], "quantity": [2, 3]})
features = FeatureEngineer(
    FeatureSpec(pl.col("price") * pl.col("quantity"), alias="total")
)
prepared = features.fit_transform(orders)
assert prepared["total"].to_list() == [20.0, 60.0]

Expressions replay on each batch; they do not freeze learned statistics. Schema checks cover structure and dtypes, not business rules or distribution drift. Lazy queries must be collected before an estimator that requires eager input.

Read the documentation, installation and first pipeline, user guide, examples, API reference, and development guide. Licensed under MIT.

Metadata

Release files for polars-learn 0.1.6

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

Source distribution (sdist)

Source distribution for polars-learn 0.1.6
File Size Uploaded
polars_learn-0.1.6.tar.gz 196.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polars-learn 0.1.6
File Interpreter ABI Platform
polars_learn-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 232.6 kB

Release files / polars_learn-0.1.6.tar.gz

Download URL polars_learn-0.1.6.tar.gz
Size 196.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0a8b0d6a9172b22d5c8c79a051e3133923108f0ac5f91e9ffc44c460910b222c
BLAKE2b-256 checksum
How to use checksums
87ad52513c780af254843851aba4a77c6bb2dcfdabe436cc0a7c318fc6ab2ffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 19, 2026.

Transparency log

Release files / polars_learn-0.1.6-py3-none-any.whl

Download URL polars_learn-0.1.6-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de6465d4232da40637b4f284cb311e5ce30867cbe7248641ee2d0e71922241b2
BLAKE2b-256 checksum
How to use checksums
2c8fb13fc44b6d9e22eda9bf2c9d9c520d9609061e7d34113072b4cb282d62a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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