High Level Expressions for Dask
Project description
Dask Expressions
Dask Dataframes with query optimization.
This is a proof-of-concept rewrite of Dask dataframe that includes query optimization and generally improved organization.
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 project is a work in progress and will be changed without notice or deprecation warning. Please provide feedback, but it's best to avoid use in production settings.
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-0.1.0.tar.gz
(74.6 kB
view hashes)
Built Distribution
dask_expr-0.1.0-py3-none-any.whl
(61.9 kB
view hashes)
Close
Hashes for dask_expr-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 292bf645ce6c9484313b58872d79df6a1dcbaab9deb532ee76e8d637cf8ab38d |
|
MD5 | 38b314b861222629255603da3e2b6347 |
|
BLAKE2b-256 | 6665cba44fead1d390284aa9a269b0edf3805db7f30e20059fa7b13565c6ef68 |