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:
- 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.1.13.tar.gz
(222.1 kB
view details)
Built Distribution
dask_expr-1.1.13-py3-none-any.whl
(242.6 kB
view details)
File details
Details for the file dask_expr-1.1.13.tar.gz
.
File metadata
- Download URL: dask_expr-1.1.13.tar.gz
- Upload date:
- Size: 222.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e00b2c6538e6c633e22db262abfe3aeb6dc65c1de4a8eadcb2bbf44ad8729da |
|
MD5 | 0c4b400f54db28e559a219d1c9346318 |
|
BLAKE2b-256 | d330d5460d6834ef0c9080fda8e080fb7ed76b86101d649130bd0a95e9bd2e0d |
Provenance
File details
Details for the file dask_expr-1.1.13-py3-none-any.whl
.
File metadata
- Download URL: dask_expr-1.1.13-py3-none-any.whl
- Upload date:
- Size: 242.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a68a8d18cae72b172ee3afc3f33253f065becbf8fbf9f3ee43e665ec5499112 |
|
MD5 | f22c26daf818e8d11a3c9d02af3436eb |
|
BLAKE2b-256 | 1f611b8380ece60b69e081863eaad58acf05833f2e52e3d834334567c4bb49bc |