LazyFrame
LazyFrame is a smart lazy DataFrame execution engine with a unified API over multiple backends.
Highlights
- Chainable DataFrame API (
filter,select,groupby,agg,sort) - Logical plan construction with lazy execution (
.run()is the trigger) - Auto backend selection (
pandas,polars,duckdbplaceholder) - Simple optimizer with filter pushdown
- Explainability via
.explain() - Actionable hints via
.optimize()
Quick start
from lazyframe import lf
df = lf.load({
"age": [20, 30, 40],
"country": ["BD", "US", "IN"],
"income": [1000, 2000, 3000],
})
result = (
df.filter(df.age > 18)
.groupby("country")
.agg({"income": "mean"})
.sort("income", descending=True)
)
print(result.explain())
print(result.run())
Install for development
pip install -e ".[dev]"
pytest
Backend strategy
strategy="auto"chooses backend by dataset size heuristicstrategy="pandas"forces pandasstrategy="polars"forces polars fallback backendstrategy="duckdb"forces duckdb placeholder backend
Metadata
Release files for LazyFrame 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lazyframe-0.1.0.tar.gz | 6.6 kB | Without provenance | Details for lazyframe-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lazyframe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lazyframe-0.1.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / lazyframe-0.1.0.tar.gz
| Download URL | lazyframe-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e835695246fe68ee246bc10cdeec28dbd3b01746e14c5b8e0c54c5a83fe6e806
|
|
BLAKE2b-256 checksum How to use checksums |
38a75bca2597ec646d23fb3eaf26907f403e6951f582e72c3b8d34b16ca687c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / lazyframe-0.1.0-py3-none-any.whl
| Download URL | lazyframe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d7f2498e5cdc93e4c6fb16274dacc6306873eb1046a968fee10d88e682b6496
|
|
BLAKE2b-256 checksum How to use checksums |
e8e98b9c9b65804e9ed62adbdc548b12cde438531a972a18e16bf050a3bd9e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Security for LazyFrame 0.1.0
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.