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.4.tar.gz
(165.6 kB
view details)
Built Distribution
dask_expr-1.0.4-py3-none-any.whl
(180.2 kB
view details)
File details
Details for the file dask-expr-1.0.4.tar.gz
.
File metadata
- Download URL: dask-expr-1.0.4.tar.gz
- Upload date:
- Size: 165.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58899409fe9c19eedb1eba2477a0308da2cc3b3e1984b913fdbf012481b76326 |
|
MD5 | 52b8a1f1e53bc9ab7ed045539d2a796a |
|
BLAKE2b-256 | 0f330019dac2b48b33b4190f61d1e3e1314108ea836885dd5c1dce0a22ab6885 |
Provenance
File details
Details for the file dask_expr-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: dask_expr-1.0.4-py3-none-any.whl
- Upload date:
- Size: 180.2 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 | 442463458dbd583768d67d4d6a904904e2b3115bb65e6b8215832e760ab86cf1 |
|
MD5 | 13fbdd61fbe4f0dbf4984fc6142f72e1 |
|
BLAKE2b-256 | b33359616c0f2694364e21959f73172ec3c865d318c5d3a13010de8428cf3bb9 |