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.14.tar.gz
(198.0 kB
view details)
Built Distribution
dask_expr-1.0.14-py3-none-any.whl
(195.2 kB
view details)
File details
Details for the file dask_expr-1.0.14.tar.gz
.
File metadata
- Download URL: dask_expr-1.0.14.tar.gz
- Upload date:
- Size: 198.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fccd69387ff16c96cc11d8ca8e2cf3f3f55e301714c6e32d1b68fce404681db |
|
MD5 | 4cc82487b03ac7c70c23fdf72713a7a3 |
|
BLAKE2b-256 | 18fc5c55e761927b1624f1f77b4a024012b9126dcd9fbc7eda5b433c160f9729 |
Provenance
File details
Details for the file dask_expr-1.0.14-py3-none-any.whl
.
File metadata
- Download URL: dask_expr-1.0.14-py3-none-any.whl
- Upload date:
- Size: 195.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a902bc347dafa959054f014596da2429eeebd70114b20b5634b58e06c363c1a |
|
MD5 | 682e98d46fb7ae6d086432c2d56f67cd |
|
BLAKE2b-256 | d106cdcc7f7e88e4a412b197e822caf7844180248f2eb565d2bf4fbd1d9b57cc |