High Level Expressions for Dask
Project description
Dask Expressions
Dask DataFrames with query optimization.
This is a rewrite of Dask DataFrame that includes query optimization and generally improved organization.
More in our blog posts:
Example
import dask_expr as dx
df = dx.datasets.timeseries()
df.head()
df.groupby("name").x.mean().compute()
Query Representation
Dask-expr encodes user code in an expression tree:
>>> df.x.mean().pprint()
Mean:
Projection: columns='x'
Timeseries: seed=1896674884
This expression tree will be optimized and modified before execution:
>>> df.x.mean().optimize().pprint()
Div:
Sum:
Fused(375f9):
| Projection: columns='x'
| Timeseries: dtypes={'x': <class 'float'>} seed=1896674884
Count:
Fused(375f9):
| Projection: columns='x'
| Timeseries: dtypes={'x': <class 'float'>} seed=1896674884
Stability
This is the default backend for dask.DataFrame since version 2024.3.0.
API Coverage
Dask-Expr covers almost everything of the Dask DataFrame API. The only missing features are:
melt
- named GroupBy Aggregations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dask-expr-1.0.2.tar.gz
(165.3 kB
view details)
Built Distribution
dask_expr-1.0.2-py3-none-any.whl
(180.0 kB
view details)
File details
Details for the file dask-expr-1.0.2.tar.gz
.
File metadata
- Download URL: dask-expr-1.0.2.tar.gz
- Upload date:
- Size: 165.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8718c7634f2148263d3a4b8e0d520279d059bc9816438ddf105fa712e10ee938 |
|
MD5 | 338c6f7139a98d8884c248a836f28b6a |
|
BLAKE2b-256 | 0899e79f0462b3f9680a1c66445aef1d59176a10e0867452021e5d68b43eccd3 |
Provenance
File details
Details for the file dask_expr-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: dask_expr-1.0.2-py3-none-any.whl
- Upload date:
- Size: 180.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99c92178eafc736669dea893cf9c5dd750dff58ccd26af5ad20569b6a160111 |
|
MD5 | 34b4207351e72b3b30b20f9b334e89fb |
|
BLAKE2b-256 | 9e9f5893615a20e5f097d15acd6b29e98302b4149967365d27701a12724c8d3c |