Skip to main content

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.tar.gz (163.7 kB view details)

Uploaded Source

Built Distribution

dask_expr-1.0-py3-none-any.whl (178.4 kB view details)

Uploaded Python 3

File details

Details for the file dask-expr-1.0.tar.gz.

File metadata

  • Download URL: dask-expr-1.0.tar.gz
  • Upload date:
  • Size: 163.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for dask-expr-1.0.tar.gz
Algorithm Hash digest
SHA256 cbe1feacc99b6613c32551f8663f0adf4582a2446762e34c7d988a71d2c22e23
MD5 33cb63c6da5bc5aa199b0623639c8a37
BLAKE2b-256 4b4c4def29b955110c68a97ab408802dcbe5560f54194be6e493c8accc9b0482

See more details on using hashes here.

Provenance

File details

Details for the file dask_expr-1.0-py3-none-any.whl.

File metadata

  • Download URL: dask_expr-1.0-py3-none-any.whl
  • Upload date:
  • Size: 178.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for dask_expr-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aebc2f1720a84380fd872af1625e85287e21d57dfba077b2135e6c03c26a80a5
MD5 96463601422dca0065cb197fa0c09f10
BLAKE2b-256 8f9453f9a046ef09080a09f15b3d07a2a159befceffc6dbee7227dcfa61cf79f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page