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

Uploaded Source

Built Distribution

dask_expr-1.0.12-py3-none-any.whl (194.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dask_expr-1.0.12.tar.gz
  • Upload date:
  • Size: 178.2 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.12.tar.gz
Algorithm Hash digest
SHA256 b28321b2c0e8da3baced6c04d14fd8184cda09682f3b9e4b10adf6b55586da53
MD5 af0402c7698913fa50c7891467ec797c
BLAKE2b-256 2136ddabfb80c7cfe0cb94e54a3facc10edd10923c95cde307e5970cd383ab63

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: dask_expr-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 194.3 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7f1c971fe5449b18a8d61928e6ae74d845a8b29240fff498703824448ddda8d0
MD5 0038b79c8f9234d96925dc929479fa3d
BLAKE2b-256 9fe282638e730b794b34f32783e76e8354412d1492f501d7ad0e8e705fb34e12

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