skillfed

dask-expr

High Level Expressions for Dask

dask-expr v2.0.0 11.0M downloads/30d#1,422 on PyPI89
Permissive license BSD DORMANT released

What it is and what it does

Dask Expressions is a rewrite of Dask DataFrame that adds query optimization by representing user operations as an expression tree before execution. Instead of executing operations immediately, the library builds a tree structure encoding the computation, optimizes it (e.g., fusing operations, reordering steps), and then executes the optimized plan. It is designed as a drop-in replacement and has been the default backend for dask.DataFrame since version 2024.3.0.

The package depends only on dask and installs with low friction. It covers nearly the full Dask DataFrame API, with the exception of named GroupBy Aggregations. It supports modern Python versions (3.10 through 3.13) and is intended for developers and researchers working with distributed data processing at scale.

Use it for:

  • Optimize large distributed dataframe queries by leveraging automatic expression tree optimization before execution.
  • Migrate from standard Dask DataFrame to a more efficient backend without changing existing code.
  • Process time-series and grouped data with better performance through query planning.
  • Build data pipelines where query optimization can reduce computation time and memory usage.
  • Work with pandas-like APIs on distributed datasets while benefiting from automatic optimization.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Dask Expressions provides query optimization for Dask DataFrames by encoding operations as an expression tree that is optimized before execution, replacing the earlier Dask DataFrame implementation.

Yes. Dask Expressions is the default backend for dask.DataFrame as of version 2024.3.0, making it the standard choice for new Dask DataFrame work. It offers query optimization with low install friction and permissive licensing. Maintenance is dormant but the package is stable and widely used. Install it if you are using Dask DataFrames; it is the recommended path forward.

Install

dask-expr on PyPI

pip

pip install dask-expr

uv

uv add dask-expr

poetry

poetry add dask-expr

Installing dask-expr

Before you install

Low install friction with a single wheel distribution. Maintenance is dormant (570 days since last release), though the repository remains active with a recent commit on 2025-01-21. This is the default backend for dask.DataFrame since version 2024.3.0, so stability is established.

License in practice

BSD license is permissive, allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.

Quickstart

pip install dask-expr

import dask_expr as dx

df = dx.datasets.timeseries()
result = df.groupby("name").x.mean().compute()

Requires Python 3.10 or later.

Verify before relying

  • Whether named GroupBy Aggregations (noted as missing) are critical for your workflow.
  • Performance gains over standard Dask DataFrame for your specific query patterns.

Package facts

License BSD (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — dask
Maintenance dormant — 570 days since the last release
Last repo commit
First released
Downloads 10,958,153/month — #1,422 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dask_expr-2.0.0-py3-none-any.whl

Keywords: dask, pandas

Intended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: System :: Distributed Computing

Tags

dask dataframe query optimizationdistributed dataframe with optimizationdask expression treesoptimized pandas-like operationsdask dataframe backendlazy dataframe evaluationdistributed data processing
query-optimizationdistributed-computingdataframe

More Scientific/Engineering packages