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:

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

Uploaded Source

Built Distribution

dask_expr-1.1.18-py3-none-any.whl (244.5 kB view details)

Uploaded Python 3

File details

Details for the file dask_expr-1.1.18.tar.gz.

File metadata

  • Download URL: dask_expr-1.1.18.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

Hashes for dask_expr-1.1.18.tar.gz
Algorithm Hash digest
SHA256 d254cc3a6761586d2dee8c982a7524d69494329e1295e1ecf4358ec3543c0422
MD5 791884d1e61446dc1c10c363f96addd5
BLAKE2b-256 7b4c76a91002b2a6f0647f6d459c309d463edde2ede25dc832612fe25b4a2d99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dask_expr-1.1.18-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

Hashes for dask_expr-1.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 a9b2f5c6ba48df012276a70569934f537d0047de313b11ba9a8fd0945118cc83
MD5 4ec35edaf478b8a631113dd458ff4332
BLAKE2b-256 96790f5c68663c10b3f400625efb0e544e0279639a0ea31997dda71e9bb65815

See more details on using hashes here.

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