G1Joshi

dask

Dask parallel computing library. Use for scaling pandas.

G1Joshi 12 3 Updated 6mo ago
GitHub

Install

npx skillscat add g1joshi/agent-skills/dask

Install via the SkillsCat registry.

About this skill

Dask is a parallel computing library that extends pandas and NumPy APIs to run on clusters, allowing efficient processing of data larger than available RAM. It is appropriate for big‑data workloads that require distributed execution, such as those running on Kubernetes clusters, and should be avoided for small datasets where overhead outweighs benefits.

SKILL.md

Dask

Dask scales Python. It looks like Pandas/NumPy but runs on clusters. 2025 updates focus on High Performance Shuffle and GPU integration.

When to Use

  • Big Data: When data > RAM but < BigQuery scale.
  • Cluster Computing: Utilizing a Kubernetes cluster for Python functions.
  • Xarray: Backend for geospatial data.

Core Concepts

Collections

dask.dataframe, dask.array, dask.bag.

Scheduler

Decides where to run tasks (Local Threads, Processes, or Distributed Cluster).

Dashboard

Real-time visualization of task progress (port 8787).

Best Practices (2025)

Do:

  • Use dask-expr: The new query optimization engine for Dask DataFrames.
  • Use Parquet: CSVs are distinctively slow in distributed settings.

Don't:

  • Don't use for small data: The overhead of the scheduler makes it slower than Pandas for <1GB.

References