narwhals-datafusion
Apache DataFusion backend for
Narwhals, registered through the
narwhals.plugins entry point.
pip install narwhals-datafusion # core
pip install "narwhals-datafusion[extra-functions]" # + mode, skew, kurtosis
Usage
import narwhals as nw
import pyarrow as pa
from datafusion import SessionContext
ctx = SessionContext()
df = ctx.from_arrow(pa.table({"a": [1, 2, 3], "b": ["x", "y", "x"]}))
lf = nw.from_native(df) # nw.LazyFrame on this backend
result = (
lf.group_by("b")
.agg(nw.col("a").sum())
.sort("b")
.collect(backend="pyarrow")
)
Everything is lazy until .collect(): expressions become datafusion.Expr,
frame verbs become datafusion.DataFrame methods, and DataFusion executes the
plan. Dtypes are pyarrow end-to-end.
- Playground: a tour of the API, extra included
- API coverage: supported, partial and unsupported methods
- Known limitations
- Architecture
Used by
- pandera:
pip install 'pandera[datafusion]'validatesdatafusion.DataFramethrough this plugin.tests/pandera/pins thenarwhals.stable.v1calls it makes.
Compatibility
- Python
>=3.10; tested on 3.12. datafusion>=55,<56: capped at the tested major; a release moves the cap.narwhals>=2.27: floor only; tested on 2.28, thenarwhals/submodule.datafusion-extra-functions>=0.5.5(extra): each release pins its datafusion major.- Weekly,
compat.yml(the badge): both suites on the newest narwhals release inside the datafusion cap, extra included.
Metadata
Release files for narwhals-datafusion 0.2.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 |
|---|---|---|---|---|
| narwhals_datafusion-0.2.0.tar.gz | 26.7 kB | With provenance | Details for narwhals_datafusion-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| narwhals_datafusion-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for narwhals_datafusion-0.2.0-py3-none-any.whl |
Total release size: 57.6 kB
Release files / narwhals_datafusion-0.2.0.tar.gz
| Download URL | narwhals_datafusion-0.2.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482d5ae2f563d9dfe811021f74db96c62e50a9d23fd002868bfee42c1d75031c
|
|
BLAKE2b-256 checksum How to use checksums |
12fca4ba1ac0c416e9730c42a03697f5491440e7c33939c4d04c0a43cd9fb57f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 7, 2026.
Transparency logRelease files / narwhals_datafusion-0.2.0-py3-none-any.whl
| Download URL | narwhals_datafusion-0.2.0-py3-none-any.whl |
|---|---|
| Size | 30.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d50fcd7468bfe1bebf9d87bf0e3d39d193f94a06b31d2a5c648d1a7840d9e98
|
|
BLAKE2b-256 checksum How to use checksums |
91e381b8f7f7f5765124bd9608fa0445bed52684f15a6e3fe430ba86bb63773a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 7, 2026.
Transparency logSecurity for narwhals-datafusion 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for narwhals_datafusion-0.2.0.tar.gz
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 Nov 7, 2026.
Transparency logA 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.