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.19.tar.gz
(223.9 kB
view details)
Built Distribution
dask_expr-1.1.19-py3-none-any.whl
(244.5 kB
view details)
File details
Details for the file dask_expr-1.1.19.tar.gz
.
File metadata
- Download URL: dask_expr-1.1.19.tar.gz
- Upload date:
- Size: 223.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c8a50924bf6718bb630d58f11311e3d928c7037af913e096fa0eb3f0a493b9f |
|
MD5 | acff2fbf18e0b7d7d70c8a84bee38d47 |
|
BLAKE2b-256 | efb0a0c1050ee70be7a0274529b15edacea769c395b392edb1925118937fdb7c |
File details
Details for the file dask_expr-1.1.19-py3-none-any.whl
.
File metadata
- Download URL: dask_expr-1.1.19-py3-none-any.whl
- Upload date:
- Size: 244.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2931c20241a3bc1978ccccc4b8a2f7b27b15bb85ce89fec04595bc5bcf20cf5 |
|
MD5 | add45f033c1d8a51f550cae5f235d6b9 |
|
BLAKE2b-256 | e957e7996529256b13009fa8f4c34d1d7229755cc7d2b054aa43edb6ca655578 |