dask

Scale pandas and NumPy workflows beyond memory using parallel and distributed computing.

46.6k|4.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/claude-scientific-skills --skill dask-k-dense-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dask
Source: https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/skills/dask
Command: npx skills add https://github.com/K-Dense-AI/claude-scientific-skills --skill dask-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dask, pandas, pyarrow, s3fs, gcsfs, and includes references (resource) components.

What problem does it solve? Pandas and NumPy fail when datasets exceed available RAM or when computations take too long on a single core. This Skill provides guidance for scaling existing pandas/NumPy code to larger-than-memory datasets on a laptop or across multi-machine clusters using Dask. ## Core Features & Use Cases - Parallel DataFrames and Arrays: Scale pandas and NumPy operations to 100 GiB on a laptop or 100 TiB on a cluster with familiar APIs and lazy evaluation. - Unstructured Data Processing: Use Dask Bags to clean and transform text, JSON, and log files, then convert to DataFrames for structured analysis. - Custom Distributed Workflows: Build dynamic parallel pipelines with Futures, actors, and distributed coordination primitives like queues, locks, and events. - Use Case: Imagine you have hundreds of CSV files totaling 200 GB. Use this Skill to read them with dd.read_csv('data/*.csv'), filter and aggregate with groupby, and write the result to Parquet without ever loading everything into memory. ## Quick Start Use the dask skill to read all CSV files in my data folder, group by category, and compute the mean value without running out of memory.

Frequently Asked Questions about dask

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process a CSV file larger than RAM in Python?▼

Use dask.dataframe to read the file lazily with dd.read_csv, which splits it into pandas-sized partitions processed in parallel. Operations build a task graph and only execute when you call .compute(), keeping memory usage bounded.

Dask vs pandas: when should I switch?▼

Switch to Dask when your dataset exceeds available RAM or pandas operations are too slow even after optimization. If data fits comfortably in memory and computations finish in seconds, plain pandas is simpler and faster.

Dask vs vaex vs polars: which should I use?▼

Use Dask for scaling existing pandas/NumPy code beyond memory or across clusters. Use vaex for out-of-core analytics on a single machine, and polars for maximum in-memory speed on data that fits in RAM.

Does Dask support reading data from S3 or GCS?▼

Yes, Dask reads remote Parquet and other formats from s3:// and gs:// paths. Install s3fs for S3 or gcsfs for Google Cloud Storage, and pass credentials via the storage_options parameter.

Why is my Dask computation slow to start?▼

A slow start usually means the task graph is too large, often millions of tiny tasks from small chunks. Increase chunk sizes toward roughly 100 MB each or fuse operations with map_partitions or map_blocks.

Which Dask scheduler should I use for my workload?▼

Use threads (the default) for NumPy and pandas operations that release the GIL, processes for pure Python code, synchronous for debugging with pdb, and the distributed scheduler when you need the dashboard or multi-machine clusters.